Skip to content

Commit c4f5155

Browse files
MaxDesiatovweissiartemredkin
authored
Fix doc comment for redirectConfiguration (#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 <[email protected]> Co-authored-by: Artem Redkin <[email protected]>
1 parent afe6ae4 commit c4f5155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/AsyncHTTPClient/HTTPClient.swift

+1-1
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)