Skip to content

Commit 8967278

Browse files
authored
Add files via upload
1 parent 282633d commit 8967278

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

request.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ func BuildHTTPClient(ro RequestOptions) *http.Client {
463463
func createHTTPTransport(ro RequestOptions) *http.Transport {
464464
ourHTTPTransport := &http.Transport{
465465
// These are borrowed from the default transporter
466-
Proxy: ro.proxySettings,
467466
Dial: (&net.Dialer{
468467
Timeout: ro.DialTimeout,
469468
KeepAlive: ro.DialKeepAlive,
@@ -474,6 +473,9 @@ func createHTTPTransport(ro RequestOptions) *http.Transport {
474473
TLSClientConfig: &tls.Config{InsecureSkipVerify: ro.InsecureSkipVerify},
475474
DisableCompression: ro.DisableCompression,
476475
}
476+
if ro.Proxies != nil {
477+
ourHTTPTransport.Proxy = http.ProxyURL(ro.Proxies["http"])
478+
}
477479
EnsureTransporterFinalized(ourHTTPTransport)
478480
return ourHTTPTransport
479481
}

0 commit comments

Comments
 (0)