Skip to content

Commit

Permalink
fix: added default transport when no roundtripper is set
Browse files Browse the repository at this point in the history
  • Loading branch information
demeyerthom committed Dec 15, 2023
1 parent 4126562 commit a076cf5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ class ClientFileProducer(
|
|func (sat *SetUserAgentTransport) RoundTrip(req *http.Request) (*http.Response, error) {
| req.Header.Set("User-Agent", sat.userAgent)
| return sat.T.RoundTrip(req)
| if sat.T != nil {
| return sat.T.RoundTrip(req)
| }
| return http.DefaultTransport.RoundTrip(req)
|}
|
|// NewClient creates a new client based on the provided ClientConfig
Expand Down

0 comments on commit a076cf5

Please sign in to comment.