another spot where the res is double closed
This commit is contained in:
parent
1833fa8d15
commit
41db1f922b
@ -294,9 +294,6 @@ func UploadCheck(oidPath string) (*objectResource, error) {
|
||||
tracerx.Printf("api: uploading (%s)", oid)
|
||||
res, obj, err := doLegacyApiRequest(req)
|
||||
|
||||
io.Copy(ioutil.Discard, res.Body)
|
||||
res.Body.Close()
|
||||
|
||||
if err != nil {
|
||||
if IsAuthError(err) {
|
||||
setAuthType(res)
|
||||
|
Loading…
Reference in New Issue
Block a user