From 69d3f81c89afb141738b6c856f6efed2763ec5e4 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Thu, 5 Mar 2026 16:05:34 -0500 Subject: [PATCH] fix(http): create new http.Client instead of mutating default --- internal/http/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/client.go b/internal/http/client.go index c1303c2..327141d 100644 --- a/internal/http/client.go +++ b/internal/http/client.go @@ -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)