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:
@@ -69,6 +69,7 @@ func (c *Client) CallWithContext(ctx context.Context, method string, values url.
|
||||
}
|
||||
resp, err := c.httpClient.Do(req)
|
||||
if err != nil {
|
||||
c.httpClient.CloseIdleConnections()
|
||||
return nil, &NetworkError{err}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user