mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
common/http: use a default timeout of 30 seconds for HTTP client
This commit is contained in:
@@ -200,4 +200,5 @@ func (c *Component) Stop() error {
|
||||
func init() {
|
||||
// Disable proxy for client
|
||||
http.DefaultTransport.(*http.Transport).Proxy = nil
|
||||
http.DefaultClient.Timeout = 30 * time.Second
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user