Merge pull request #485 from yebinama/proxy

Driver: Add proxy support
This commit is contained in:
Jimmy Zelinskie 2017-11-07 13:07:08 -05:00 committed by GitHub
commit 39f00cd756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,7 @@ func Extract(format, path string, headers map[string]string, toExtract []string)
// Send the request and handle the response.
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: insecureTLS},
Proxy: http.ProxyFromEnvironment,
}
client := &http.Client{Transport: tr}
r, err := client.Do(request)