Skip to content

Commit 0e2330e

Browse files
authored
test: fix header on http retry (#718)
1 parent 7d20528 commit 0e2330e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scaleway/provider_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func getHTTPRecoder(t *testing.T, update bool) (client *http.Client, cleanup fun
7777

7878
// Add a filter which removes Authorization headers from all requests:
7979
r.AddFilter(func(i *cassette.Interaction) error {
80+
i.Request.Headers = i.Request.Headers.Clone()
8081
delete(i.Request.Headers, "x-auth-token")
8182
delete(i.Request.Headers, "X-Auth-Token")
8283
return nil

0 commit comments

Comments
 (0)