Use CheckRedirect so that client behaves the same way with GO 1.8

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: f9ab6a77b0
Component: cli
This commit is contained in:
Daniel Nephin
2017-05-16 11:48:00 -04:00
parent 54778e28e7
commit 2112e5a5da

View File

@ -294,7 +294,8 @@ func newHTTPClient(host string, tlsOptions *tlsconfig.Options) (*http.Client, er
sockets.ConfigureTransport(tr, proto, addr)
return &http.Client{
Transport: tr,
Transport: tr,
CheckRedirect: client.CheckRedirect,
}, nil
}