From aa020ee7e765f200976cd513d296530bbe3704a8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 26 Dec 2020 22:01:16 -0800 Subject: [PATCH] s3: restore V2 auth type The added headers were included in calculating the signatures, failing the comparison --- weed/s3api/http/header.go | 4 ++-- 1 file 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 )