diff options
| author | chrislu <chris.lu@gmail.com> | 2022-07-16 10:49:38 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-07-16 10:49:38 -0700 |
| commit | 8050f9202f87c4a9b273180faa4136fa1002ba73 (patch) | |
| tree | f1cf3a26010ad278d8ddb204528b830c286a5a3e /weed/s3api | |
| parent | 113a4546fd36b9a0eb78c4e462f38f7488cf1e88 (diff) | |
| parent | 1db012485f996df0615a1d6a7ece9faace2e536c (diff) | |
| download | seaweedfs-8050f9202f87c4a9b273180faa4136fa1002ba73.tar.xz seaweedfs-8050f9202f87c4a9b273180faa4136fa1002ba73.zip | |
Merge branch 'master' into messaging
Diffstat (limited to 'weed/s3api')
| -rw-r--r-- | weed/s3api/s3api_object_handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index 4ad3454ba..e49d613c4 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -445,9 +445,9 @@ func (s3a *S3ApiServer) putToFiler(r *http.Request, uploadUrl string, dataReader func setEtag(w http.ResponseWriter, etag string) { if etag != "" { if strings.HasPrefix(etag, "\"") { - w.Header().Set("ETag", etag) + w.Header()["ETag"] = []string{etag} } else { - w.Header().Set("ETag", "\""+etag+"\"") + w.Header()["ETag"] = []string{"\"" + etag + "\""} } } } |
