mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
fetcher: respect HTTP(S)_PROXY environment variable (#2635)
This commit is contained in:
parent
d599b80b2a
commit
c922864f30
@ -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…
Reference in New Issue
Block a user