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:
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)
|
request.Header.Add(key, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
response, err := http.DefaultClient.Do(request)
|
response, err := defaultHTTPClient.Do(request)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue