From d689c5c4436b1152fd11d43cb7d642bd197a0740 Mon Sep 17 00:00:00 2001 From: Barunavo Pal Date: Wed, 24 Jul 2024 14:16:58 +0200 Subject: [PATCH] feat(proxy): allow to use proxy from environment --- internal/clients/http/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/clients/http/client.go b/internal/clients/http/client.go index 1977580..b99d229 100644 --- a/internal/clients/http/client.go +++ b/internal/clients/http/client.go @@ -72,6 +72,7 @@ func (hc *client) SendRequest(ctx context.Context, method string, url string, bo Transport: &http.Transport{ // #nosec G402 TLSClientConfig: &tls.Config{InsecureSkipVerify: skipTLSVerify}, + Proxy: http.ProxyFromEnvironment, // Use proxy settings from environment }, Timeout: hc.timeout, }