Skip to content

Commit

Permalink
Merge pull request #1617 from howardjohn/conformance/drop-default-client
Browse files Browse the repository at this point in the history
conformance: do not use (and mutate) DefaultClient
  • Loading branch information
k8s-ci-robot authored and shaneutt committed Feb 7, 2023
1 parent 4c7a0fa commit e53bacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conformance/utils/roundtripper/roundtripper.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type DefaultRoundTripper struct {
// is received.
func (d *DefaultRoundTripper) CaptureRoundTrip(request Request) (*CapturedRequest, *CapturedResponse, error) {
cReq := &CapturedRequest{}
client := http.DefaultClient
client := &http.Client{}

if request.UnfollowRedirect {
client.CheckRedirect = func(req *http.Request, via []*http.Request) error {
Expand Down

0 comments on commit e53bacd

Please sign in to comment.