mirror of
https://github.com/minio/minio.git
synced 2025-02-28 13:59:15 -05:00
avoid network read errors crashing CreateFile call (#11939)
Thanks to @dvaldivia for reproducing this
This commit is contained in:
parent
cf87303094
commit
3242847ec0
@ -340,9 +340,8 @@ func (client *storageRESTClient) CreateFile(ctx context.Context, volume, path st
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
waitReader, err := waitForHTTPResponse(respBody)
|
_, err = waitForHTTPResponse(respBody)
|
||||||
defer http.DrainBody(ioutil.NopCloser(waitReader))
|
defer http.DrainBody(respBody)
|
||||||
defer respBody.Close()
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user