mirror of
https://github.com/glanceapp/glance.git
synced 2025-08-21 04:38:27 +02:00
Use default client in diagnose command
defaultHTTPClient may behave differently to http.DefaultClient and is used for almost all widgets, using it within the diagnose command will make debugging and replicating issues easier
This commit is contained in:
@@ -165,7 +165,7 @@ func testHttpRequestWithHeaders(method, url string, headers map[string]string, e
|
||||
request.Header.Add(key, value)
|
||||
}
|
||||
|
||||
response, err := http.DefaultClient.Do(request)
|
||||
response, err := defaultHTTPClient.Do(request)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Reference in New Issue
Block a user