aboutsummaryrefslogtreecommitdiff
path: root/weed/server
diff options
context:
space:
mode:
authorLHHDZ <changlin.shi@ly.com>2022-10-12 11:14:14 +0800
committerGitHub <noreply@github.com>2022-10-11 20:14:14 -0700
commitd21e2f523dd949def64e229640b4eb96b96866d2 (patch)
treea87055d2f45a3b70160fae32db1fe086ab084bf5 /weed/server
parentc34f04b35ba2f528d7ebfd183f0826c2632a339b (diff)
downloadseaweedfs-d21e2f523dd949def64e229640b4eb96b96866d2.tar.xz
seaweedfs-d21e2f523dd949def64e229640b4eb96b96866d2.zip
split `ExtAcpKey` to `ExtAmzOwnerKey` and `ExtAmzAclKey` to avoid unn… (#3824)
split `ExtAcpKey` to `ExtAmzOwnerKey` and `ExtAmzAclKey` to avoid unnecessary `json.Unmarshal()` call Signed-off-by: changlin.shi <changlin.shi@ly.com> Signed-off-by: changlin.shi <changlin.shi@ly.com>
Diffstat (limited to 'weed/server')
-rw-r--r--weed/server/filer_server_handlers_write_autochunk.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go
index 96e5018da..7064cac02 100644
--- a/weed/server/filer_server_handlers_write_autochunk.go
+++ b/weed/server/filer_server_handlers_write_autochunk.go
@@ -375,10 +375,16 @@ func SaveAmzMetaData(r *http.Request, existing map[string][]byte, isReplace bool
}
}
- //acp
- acp := r.Header.Get(s3_constants.ExtAcpKey)
- if len(acp) > 0 {
- metadata[s3_constants.ExtAcpKey] = []byte(acp)
+ //acp-owner
+ acpOwner := r.Header.Get(s3_constants.ExtAmzOwnerKey)
+ if len(acpOwner) > 0 {
+ metadata[s3_constants.ExtAmzOwnerKey] = []byte(acpOwner)
+ }
+
+ //acp-grants
+ acpGrants := r.Header.Get(s3_constants.ExtAmzAclKey)
+ if len(acpOwner) > 0 {
+ metadata[s3_constants.ExtAmzAclKey] = []byte(acpGrants)
}
return