aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/upload_content.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2021-04-28 10:37:18 -0700
committerGitHub <noreply@github.com>2021-04-28 10:37:18 -0700
commitef94ff6837fe6e5700ec6cc7b5098735752fd9cf (patch)
tree1642bdcfb53bc6a3f45ab5f836ac4e098ced516d /weed/operation/upload_content.go
parent8ae3ea4b1de528f809eadaaef1af19e46e7b3749 (diff)
parentc2269123d3e8de2ea659a87712cc44dcdc4b636b (diff)
downloadseaweedfs-ef94ff6837fe6e5700ec6cc7b5098735752fd9cf.tar.xz
seaweedfs-ef94ff6837fe6e5700ec6cc7b5098735752fd9cf.zip
Merge pull request #2035 from kmlebedev/fix_chunks_etag
fix aws style Etag for chunks
Diffstat (limited to 'weed/operation/upload_content.go')
-rw-r--r--weed/operation/upload_content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 944186eeb..8e7c6f733 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -39,7 +39,7 @@ func (uploadResult *UploadResult) ToPbFileChunk(fileId string, offset int64) *fi
Offset: offset,
Size: uint64(uploadResult.Size),
Mtime: time.Now().UnixNano(),
- ETag: uploadResult.ETag,
+ ETag: uploadResult.ContentMd5,
CipherKey: uploadResult.CipherKey,
IsCompressed: uploadResult.Gzip > 0,
Fid: fid,