Skip to content

Commit f6f99d2

Browse files
MaxDesiatovweissiartemredkin
committed
Fix doc comment for redirectConfiguration (swift-server#266)
`redirectConfiguration` can't default to `false` as it's not a boolean value, and the default value is `RedirectConfiguration()`. Co-authored-by: Johannes Weiss <johannesweiss@apple.com> Co-authored-by: Artem Redkin <artem@redkin.me>
1 parent 9f65902 commit f6f99d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncHTTPClient/HTTPClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ public class HTTPClient {
621621
public struct Configuration {
622622
/// TLS configuration, defaults to `TLSConfiguration.forClient()`.
623623
public var tlsConfiguration: Optional<TLSConfiguration>
624-
/// Enables following 3xx redirects automatically, defaults to `false`.
624+
/// Enables following 3xx redirects automatically, defaults to `RedirectConfiguration()`.
625625
///
626626
/// Following redirects are supported:
627627
/// - `301: Moved Permanently`

0 commit comments

Comments
 (0)