fix(http): create new http.Client instead of mutating default

This commit is contained in:
ayn2op 2026-03-05 16:05:34 -05:00
parent 1ce19eccc9
commit 69d3f81c89

View file

@ -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)