Merge pull request #485 from yebinama/proxy

Driver: Add proxy support
pull/486/head
Jimmy Zelinskie 7 years ago committed by GitHub
commit 39f00cd756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save