From 26c457860b6283e859294367b55f32064a50ad38 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 22 Nov 2021 16:07:23 -0800 Subject: [PATCH] remove "expires" header from presign v2 as metadata (#13718) fixes #13704 --- cmd/signature-v2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/signature-v2.go b/cmd/signature-v2.go index 43f35c195..7f789d268 100644 --- a/cmd/signature-v2.go +++ b/cmd/signature-v2.go @@ -181,6 +181,8 @@ func doesPresignV2SignatureMatch(r *http.Request) APIErrorCode { return ErrSignatureDoesNotMatch } + r.Form.Del(xhttp.Expires) + return ErrNone }