mirror of https://github.com/docker/cli.git
Merge pull request #95 from dnephin/use-check-redirect
Use CheckRedirect so that client behaves the same way with GO 1.8
This commit is contained in:
commit
dee8e6ab2d
|
@ -294,7 +294,8 @@ func newHTTPClient(host string, tlsOptions *tlsconfig.Options) (*http.Client, er
|
||||||
sockets.ConfigureTransport(tr, proto, addr)
|
sockets.ConfigureTransport(tr, proto, addr)
|
||||||
|
|
||||||
return &http.Client{
|
return &http.Client{
|
||||||
Transport: tr,
|
Transport: tr,
|
||||||
|
CheckRedirect: client.CheckRedirect,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue