We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dff6c9 commit 4bd740bCopy full SHA for 4bd740b
cli.go
@@ -57,17 +57,13 @@ func New(opts map[string]interface{}) *Cli {
57
}
58
} else {
59
transport := &http.Transport{
60
+ Proxy: http.ProxyFromEnvironment,
61
TLSClientConfig: &tls.Config{},
62
63
if insecureSkipVerify, ok := opts["insecure"].(bool); ok {
64
transport.TLSClientConfig.InsecureSkipVerify = insecureSkipVerify
65
66
- if os.Getenv("HTTP_PROXY") != "" {
67
- proxyURL, _ := url.Parse(os.Getenv("HTTP_PROXY"))
68
- transport.Proxy = http.ProxyURL(proxyURL)
69
- }
70
-
71
ua = &http.Client{
72
Jar: cookieJar,
73
Transport: transport,
0 commit comments