File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,6 @@ func BuildHTTPClient(ro RequestOptions) *http.Client {
463
463
func createHTTPTransport (ro RequestOptions ) * http.Transport {
464
464
ourHTTPTransport := & http.Transport {
465
465
// These are borrowed from the default transporter
466
- Proxy : ro .proxySettings ,
467
466
Dial : (& net.Dialer {
468
467
Timeout : ro .DialTimeout ,
469
468
KeepAlive : ro .DialKeepAlive ,
@@ -474,6 +473,9 @@ func createHTTPTransport(ro RequestOptions) *http.Transport {
474
473
TLSClientConfig : & tls.Config {InsecureSkipVerify : ro .InsecureSkipVerify },
475
474
DisableCompression : ro .DisableCompression ,
476
475
}
476
+ if ro .Proxies != nil {
477
+ ourHTTPTransport .Proxy = http .ProxyURL (ro .Proxies ["http" ])
478
+ }
477
479
EnsureTransporterFinalized (ourHTTPTransport )
478
480
return ourHTTPTransport
479
481
}
You can’t perform that action at this time.
0 commit comments