Skip to content

Commit

Permalink
fix: nil http client
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Jan 6, 2023
1 parent 702dcd2 commit c6259ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ func New(opts ...Option) Transporter {
for _, opt := range opts {
opt(client)
}

if client.httpClient == nil {
client.httpClient = http.DefaultClient
}

return client
}

Expand Down

0 comments on commit c6259ba

Please sign in to comment.