fix(http): create new http.Client instead of mutating default
This commit is contained in:
parent
1ce19eccc9
commit
69d3f81c89
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
func NewClient(token string) *api.Client {
|
||||
stdClient := http.DefaultClient
|
||||
stdClient := new(http.Client)
|
||||
stdClient.Transport = NewTransport()
|
||||
httpClient := httputil.NewClientWithDriver(httpdriver.WrapClient(*stdClient))
|
||||
apiClient := api.NewCustomClient(token, httpClient)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue