Skip to content

Commit

Permalink
refactor: Update HTTP client initialization in Coze API client (#12)
Browse files Browse the repository at this point in the history
- Replace default HTTP client with new client instance in Coze API client
  • Loading branch information
guotie authored Jan 21, 2025
1 parent 23bd27b commit 11728dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewCozeAPI(auth Auth, opts ...CozeAPIOption) CozeAPI {
option(opt)
}
if opt.client == nil {
opt.client = http.DefaultClient
opt.client = &http.Client{}
}
saveTransport := opt.client.Transport
if saveTransport == nil {
Expand Down

0 comments on commit 11728dd

Please sign in to comment.