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
pull/471/head^2
Svilen Markov 2025-05-16 20:15:26 +07:00
parent c1aaec5ffc
commit a2247c0b6c
1 changed files with 1 additions and 1 deletions

@ -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
}