Add query param in canonical request of aws Sigv4 signature to avoid 403 from aws (#4977)

Signed-off-by: Ankit Kumar Sinha <ankitsinhaiitg@gmail.com>
This commit is contained in:
Ankit Kumar Sinha
2022-08-09 17:15:46 +05:30
committed by GitHub
parent ce4ac6ec5e
commit a4ed69d601
+1 -1
View File
@@ -585,7 +585,7 @@ func signV4(req *http.Request, service string, credService awsCredentialService,
// that we're attempting to perform; in this case, a GET from an S3 bucket
canonicalReq := req.Method + "\n" // HTTP method
canonicalReq += req.URL.EscapedPath() + "\n" // URI-escaped path
canonicalReq += "\n" // query string; not implemented
canonicalReq += req.URL.RawQuery + "\n" // RAW Query String
// include the values for the signed headers
orderedKeys := sortKeys(headersToSign)