Skip to content

Commit e53bacd

Browse files
k8s-ci-robotshaneutt
authored andcommitted
Merge pull request #1617 from howardjohn/conformance/drop-default-client
conformance: do not use (and mutate) DefaultClient
1 parent 4c7a0fa commit e53bacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conformance/utils/roundtripper/roundtripper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ type DefaultRoundTripper struct {
9595
// is received.
9696
func (d *DefaultRoundTripper) CaptureRoundTrip(request Request) (*CapturedRequest, *CapturedResponse, error) {
9797
cReq := &CapturedRequest{}
98-
client := http.DefaultClient
98+
client := &http.Client{}
9999

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

0 commit comments

Comments
 (0)