From f9ab6a77b01e36ee4ca3d8429f96b307cb117fdf Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 16 May 2017 11:48:00 -0400 Subject: [PATCH] Use CheckRedirect so that client behaves the same way with GO 1.8 Signed-off-by: Daniel Nephin --- cli/command/cli.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/command/cli.go b/cli/command/cli.go index f958a58a15..59efa9ac2a 100644 --- a/cli/command/cli.go +++ b/cli/command/cli.go @@ -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 }