mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-31 11:31:07 +02:00
Put back original test cluster client redirect behavior
This commit is contained in:
parent
ba0eac153a
commit
a00f83e715
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user