mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
fix: close and drain the response body always (#8847)
This commit is contained in:
@@ -2029,6 +2029,7 @@ func (web *webAPIHandlers) LoginSTS(r *http.Request, args *LoginSTSArgs, reply *
|
||||
|
||||
resp, err := clnt.Do(req)
|
||||
if err != nil {
|
||||
clnt.CloseIdleConnections()
|
||||
return toJSONError(ctx, err)
|
||||
}
|
||||
defer xhttp.DrainBody(resp.Body)
|
||||
|
||||
Reference in New Issue
Block a user