Merge pull request #530 from meringu/patch-1

Proxy for 2.0
release-2.0 v2.0.4
Jimmy Zelinskie 6 years ago committed by GitHub
commit aa5729df66
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