aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-26 22:01:16 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-26 22:01:16 -0800
commitaa020ee7e765f200976cd513d296530bbe3704a8 (patch)
tree986a95ac4ae160499426f1972f956f4018180fd2
parentda87f6b2653fbfff88a1c345d703a063155d76ef (diff)
downloadseaweedfs-aa020ee7e765f200976cd513d296530bbe3704a8.tar.xz
seaweedfs-aa020ee7e765f200976cd513d296530bbe3704a8.zip
s3: restore V2 auth type
The added headers were included in calculating the signatures, failing the comparison
-rw-r--r--weed/s3api/http/header.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/s3api/http/header.go b/weed/s3api/http/header.go
index a960d2370..6614b0af0 100644
--- a/weed/s3api/http/header.go
+++ b/weed/s3api/http/header.go
@@ -31,6 +31,6 @@ const (
// Non-Standard S3 HTTP request constants
const (
- AmzIdentityId = "x-amz-identity-id"
- AmzIsAdmin = "x-amz-is-admin" // only set to http request header as a context
+ AmzIdentityId = "s3-identity-id"
+ AmzIsAdmin = "s3-is-admin" // only set to http request header as a context
)