mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-03 13:01:12 +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,
|
Transport: transport,
|
||||||
CheckRedirect: func(*http.Request, []*http.Request) error {
|
CheckRedirect: func(*http.Request, []*http.Request) error {
|
||||||
// This can of course be overridden per-test by using its own client
|
// This can of course be overridden per-test by using its own client
|
||||||
//return fmt.Errorf("redirects not allowed in these tests")
|
return fmt.Errorf("redirects not allowed in these tests")
|
||||||
return http.ErrUseLastResponse
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
config := api.DefaultConfig()
|
config := api.DefaultConfig()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user