Skip to content

Commit

Permalink
fix duplicate outgoing request logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dawkaka committed Jun 21, 2024
1 parent 4cb6446 commit 890cab0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions outgoing.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,12 @@ func HTTPClient(ctx context.Context, opts ...RoundTripperOption) *http.Client {
opt(cfg)
}

httpClient := http.DefaultClient
httpClientV := *http.DefaultClient
httpClient := &httpClientV
if cfg.HTTPClient != nil {
// Use httpClient supplied by user.
httpClient = cfg.HTTPClient
v := *cfg.HTTPClient
httpClient = &v
}

httpClient.Transport = client.WrapRoundTripper(
Expand Down

0 comments on commit 890cab0

Please sign in to comment.