Browse Source

cleaner fix

pull/1255/head
Chris Lu 5 years ago
parent
commit
18cda6adbb
  1. 6
      weed/operation/upload_content.go

6
weed/operation/upload_content.go

@ -120,12 +120,14 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, i
}, filename, contentIsGzipped, mtype, pairMap, jwt) }, filename, contentIsGzipped, mtype, pairMap, jwt)
} }
if uploadResult != nil {
if uploadResult == nil {
return
}
uploadResult.Size = uint32(clearDataLen) uploadResult.Size = uint32(clearDataLen)
if contentIsGzipped { if contentIsGzipped {
uploadResult.Gzip = 1 uploadResult.Gzip = 1
} }
}
return uploadResult, err return uploadResult, err
} }

Loading…
Cancel
Save