aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/http/header.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-05-13 22:52:48 -0700
committerGitHub <noreply@github.com>2022-05-13 22:52:48 -0700
commitea4918394c75550d88ae9b6fb947fec84bd3117d (patch)
treecb94d03e64c1269a6f9e4270470078d1b7a2a06b /weed/s3api/http/header.go
parent735038b2c1b3c8402605603e70d3741d07d0d195 (diff)
parent688d55488ccebd2e3a97a0e4570c3bc8bbdceb8f (diff)
downloadseaweedfs-ea4918394c75550d88ae9b6fb947fec84bd3117d.tar.xz
seaweedfs-ea4918394c75550d88ae9b6fb947fec84bd3117d.zip
Merge pull request #3047 from shichanglin5/master
fix the problem of metadata and tagging loss when files are copied
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