Skip to content

Commit ed1c28c

Browse files
authored
Use the right HTTP client (#4288)
Using the default HTTP client was incorrect.
1 parent 58230ed commit ed1c28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/testing/tools/artifacts_api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (aac ArtifactAPIClient) RemoveUnreleasedVersions(ctx context.Context, vList
200200
return fmt.Errorf("failed to create an HTTP request to %q: %w", url, err)
201201
}
202202

203-
resp, err := http.DefaultClient.Do(req)
203+
resp, err := aac.c.Do(req)
204204
if err != nil {
205205
return fmt.Errorf("failed to request %q: %w", url, err)
206206
}

0 commit comments

Comments
 (0)