aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/http/header.go
diff options
context:
space:
mode:
authorshichanglin5 <shichanglin5@qq.com>2022-05-13 18:14:39 +0800
committershichanglin5 <shichanglin5@qq.com>2022-05-13 19:46:20 +0800
commit1166dead006eaf95dc4a542b62e9f3d3e96b1d58 (patch)
tree30243b4f1da17bfac6c258828cbf51bc475eaa22 /weed/s3api/http/header.go
parente41b11b0045376700d4ab047a54a2758a69552ea (diff)
downloadseaweedfs-1166dead006eaf95dc4a542b62e9f3d3e96b1d58.tar.xz
seaweedfs-1166dead006eaf95dc4a542b62e9f3d3e96b1d58.zip
fix the problem of metadata and tagging loss when files are copied
by adding processing of metadata and tagging in s3 api CopyObject (judging whether to copy or overwrite according to the directive header)
Diffstat (limited to 'weed/s3api/http/header.go')
-rw-r--r--weed/s3api/http/header.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/weed/s3api/http/header.go b/weed/s3api/http/header.go
index d63d50443..30fc8eefa 100644
--- a/weed/s3api/http/header.go
+++ b/weed/s3api/http/header.go
@@ -28,11 +28,14 @@ const (
AmzStorageClass = "x-amz-storage-class"
// S3 user-defined metadata
- AmzUserMetaPrefix = "X-Amz-Meta-"
+ AmzUserMetaPrefix = "X-Amz-Meta-"
+ AmzUserMetaDirective = "X-Amz-Metadata-Directive"
// S3 object tagging
- AmzObjectTagging = "X-Amz-Tagging"
- AmzTagCount = "x-amz-tagging-count"
+ AmzObjectTagging = "X-Amz-Tagging"
+ AmzObjectTaggingPrefix = "X-Amz-Tagging-"
+ AmzObjectTaggingDirective = "X-Amz-Tagging-Directive"
+ AmzTagCount = "x-amz-tagging-count"
)
// Non-Standard S3 HTTP request constants