mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-27 03:50:56 -04:00
fetcher: respect HTTP(S)_PROXY environment variable (#2635)
This commit is contained in:
parent
d599b80b2a
commit
c922864f30
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue