From e53bacd962fc599d6e4723860f1aadfbbb7f428c Mon Sep 17 00:00:00 2001 From: Kubernetes Prow Robot Date: Wed, 21 Dec 2022 10:03:27 -0800 Subject: [PATCH] Merge pull request #1617 from howardjohn/conformance/drop-default-client conformance: do not use (and mutate) DefaultClient --- conformance/utils/roundtripper/roundtripper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conformance/utils/roundtripper/roundtripper.go b/conformance/utils/roundtripper/roundtripper.go index 2b3a7e1b90..cc3aa7b937 100644 --- a/conformance/utils/roundtripper/roundtripper.go +++ b/conformance/utils/roundtripper/roundtripper.go @@ -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 {