Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkg/api/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ func NewDefaultClient() *http.Client {
customHttpClient := &http.Client{}

roundTripper := &CustomRoundTripper{
originalRoundTripper: http.Transport{},
originalRoundTripper: http.Transport{
// Honor HTTP_PROXY/HTTPS_PROXY/NO_PROXY. Without this, the init()
// below replaces http.DefaultClient with a proxy-less transport,
// breaking every http.Get in the binary behind a corporate proxy.
Proxy: http.ProxyFromEnvironment,
},
}
customHttpClient.Transport = roundTripper

Expand Down
Loading