Add support for proxy environment variables to http_response (#3302)

(cherry picked from commit a163effa6d)
This commit is contained in:
Daniel Nelson 2017-10-03 15:22:57 -07:00 committed by Daniel Nelson
parent eca00c10e0
commit d03e2fca32
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ func (h *HTTPResponse) createHttpClient() (*http.Client, error) {
}
client := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
DisableKeepAlives: true,
TLSClientConfig: tlsCfg,
},