cleaner fix

This commit is contained in:
Chris Lu 2020-03-14 13:55:32 -07:00
parent 17efa361f9
commit 18cda6adbb

View File

@ -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