Put back original test cluster client redirect behavior

This commit is contained in:
Jeff Mitchell 2017-11-08 10:15:56 -05:00
parent ba0eac153a
commit a00f83e715

View File

@ -1268,8 +1268,7 @@ func NewTestCluster(t testing.T, base *CoreConfig, opts *TestClusterOptions) *Te
Transport: transport,
CheckRedirect: func(*http.Request, []*http.Request) error {
// This can of course be overridden per-test by using its own client
//return fmt.Errorf("redirects not allowed in these tests")
return http.ErrUseLastResponse
return fmt.Errorf("redirects not allowed in these tests")
},
}
config := api.DefaultConfig()