We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67e3899 + c5f8d9d commit de2f283Copy full SHA for de2f283
v2/protocol/http/protocol.go
@@ -102,7 +102,10 @@ func New(opts ...Option) (*Protocol, error) {
102
}
103
104
if p.Client == nil {
105
- p.Client = http.DefaultClient
+ // This is how http.DefaultClient is initialized. We do not just use
106
+ // that because when WithRoundTripper is used, it will change the client's
107
+ // transport, which would cause that transport to be used process-wide.
108
+ p.Client = &http.Client{}
109
110
111
if p.roundTripper != nil {
0 commit comments