mirror of
https://github.com/glanceapp/glance.git
synced 2025-12-30 11:30:04 -06:00
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user