diff --git a/internal/api/fetcher/fetcher.go b/internal/api/fetcher/fetcher.go index c6018743d..2b18f9d15 100644 --- a/internal/api/fetcher/fetcher.go +++ b/internal/api/fetcher/fetcher.go @@ -31,7 +31,10 @@ import ( // NewHTTPClient returns a new http client. func NewHTTPClient() HTTPClient { - return &http.Client{Transport: &http.Transport{DisableKeepAlives: true}} // DisableKeepAlives fixes concurrency issue see https://stackoverflow.com/a/75816347 + return &http.Client{Transport: &http.Transport{ + DisableKeepAlives: true, // DisableKeepAlives fixes concurrency issue see https://stackoverflow.com/a/75816347 + Proxy: http.ProxyFromEnvironment, + }} } // Fetch fetches the given apiObject from the public Constellation CDN.