From 203dd13782b4f35e15b6a95c9a52a207aa143387 Mon Sep 17 00:00:00 2001 From: Ricardo Maraschini Date: Wed, 2 Oct 2024 13:57:30 +0200 Subject: [PATCH] bug: respect proxy from env when downloading we should respect the proxy env var when downloading files. Signed-off-by: Ricardo Maraschini --- internal/http/download.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/http/download.go b/internal/http/download.go index 9518f683a8c2..227537f3d8ac 100644 --- a/internal/http/download.go +++ b/internal/http/download.go @@ -46,6 +46,7 @@ func Download(ctx context.Context, url string, target io.Writer, options ...Down Transport: &http.Transport{ // This is a one-shot HTTP client which should release resources immediately. DisableKeepAlives: true, + Proxy: http.ProxyFromEnvironment, }, } req, err := http.NewRequest("GET", url, nil)