Browse Source

cleaner fix

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

12
weed/operation/upload_content.go

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

Loading…
Cancel
Save