mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: close and drain the response body always (#8847)
This commit is contained in:
@@ -207,6 +207,7 @@ func IsServerResolvable(endpoint Endpoint) error {
|
||||
|
||||
resp, err := httpClient.Do(req)
|
||||
if err != nil {
|
||||
httpClient.CloseIdleConnections()
|
||||
return err
|
||||
}
|
||||
defer xhttp.DrainBody(resp.Body)
|
||||
|
||||
Reference in New Issue
Block a user