commit
91ca57e242
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ const defaultClientTimeout = 5 * time.Second
|
|||
var defaultHTTPClient = &http.Client{
|
||||
Transport: &http.Transport{
|
||||
MaxIdleConnsPerHost: 10,
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
},
|
||||
Timeout: defaultClientTimeout,
|
||||
}
|
||||
|
|
@ -34,6 +35,7 @@ var defaultInsecureHTTPClient = &http.Client{
|
|||
Timeout: defaultClientTimeout,
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue