From 4a351d6acae78f17200fdb93df364ecd7faf60f6 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Fri, 19 Jun 2020 00:01:16 +0100 Subject: [PATCH] Fix doc comment for redirectConfiguration `redirectConfiguration` can't default to `false` as it's not a boolean value, and the default value is `RedirectConfiguration()`. --- Sources/AsyncHTTPClient/HTTPClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncHTTPClient/HTTPClient.swift b/Sources/AsyncHTTPClient/HTTPClient.swift index faa31d06d..4316d2d0a 100644 --- a/Sources/AsyncHTTPClient/HTTPClient.swift +++ b/Sources/AsyncHTTPClient/HTTPClient.swift @@ -587,7 +587,7 @@ public class HTTPClient { public struct Configuration { /// TLS configuration, defaults to `TLSConfiguration.forClient()`. public var tlsConfiguration: Optional - /// Enables following 3xx redirects automatically, defaults to `false`. + /// Enables following 3xx redirects automatically, defaults to `RedirectConfiguration()`. /// /// Following redirects are supported: /// - `301: Moved Permanently`