another spot where the res is double closed

This commit is contained in:
risk danger olson 2015-11-06 10:06:40 -08:00
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)