We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199a4e8 commit 8cd0920Copy full SHA for 8cd0920
dial.go
@@ -59,11 +59,9 @@ func (opts *DialOptions) cloneWithDefaults() *DialOptions {
59
ctx, cancel = context.WithTimeout(ctx, opts.HTTPClient.Timeout)
60
defer cancel()
61
62
- opts.HTTPClient = &http.Client{
63
- Transport: opts.HTTPClient.Transport,
64
- CheckRedirect: opts.HTTPClient.CheckRedirect,
65
- Jar: opts.HTTPClient.Jar,
66
- }
+ newClient := *opts.HTTPClient
+ newClient.Timeout = 0
+ opts.HTTPClient = &newClient
67
}
68
if o.HTTPHeader == nil {
69
o.HTTPHeader = http.Header{}
0 commit comments