Skip to content

Commit

Permalink
Patch to make the HTTPClient proxy-aware
Browse files Browse the repository at this point in the history
This patch addresses kedacore#2577

Simple implementation to allow the HTTPClient to read proxy variables, if available, from the environment.
  • Loading branch information
wltbenade authored Mar 25, 2022
1 parent 1331324 commit 556e563
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func CreateHTTPClient(timeout time.Duration, unsafeSsl bool) *http.Client {
Timeout: timeout,
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: unsafeSsl},
Proxy: http.ProxyFromEnvironment,
},
}

Expand Down

0 comments on commit 556e563

Please sign in to comment.