diff options
| author | shichanglin5 <shichanglin5@qq.com> | 2022-05-13 18:14:39 +0800 |
|---|---|---|
| committer | shichanglin5 <shichanglin5@qq.com> | 2022-05-13 19:46:20 +0800 |
| commit | 1166dead006eaf95dc4a542b62e9f3d3e96b1d58 (patch) | |
| tree | 30243b4f1da17bfac6c258828cbf51bc475eaa22 /weed/s3api/http/header.go | |
| parent | e41b11b0045376700d4ab047a54a2758a69552ea (diff) | |
| download | seaweedfs-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.go | 9 |
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 |
