good morning!!!!

Skip to content
Snippets Groups Projects
Commit f67b03be authored by swithek's avatar swithek
Browse files

Improve http client copying

parent dbaf6f8f
Branches
Tags
No related merge requests found
......@@ -79,11 +79,9 @@ func dial(ctx context.Context, urls string, opts *DialOptions, rand io.Reader) (
ctx, cancel = context.WithTimeout(ctx, opts.HTTPClient.Timeout)
defer cancel()
opts.HTTPClient = &http.Client{
Transport: opts.HTTPClient.Transport,
CheckRedirect: opts.HTTPClient.CheckRedirect,
Jar: opts.HTTPClient.Jar,
}
newClient := *opts.HTTPClient
newClient.Timeout = 0
opts.HTTPClient = &newClient
}
if opts.HTTPHeader == nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment