Get the signed headers in the order they were signed (#17690)

use pSignValues to get signed headers in order
This commit is contained in:
ruspaul013 2023-07-27 21:45:30 +03:00 committed by GitHub
parent 535f97ba61
commit a92cb66468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ func doesPresignedSignatureMatch(hashedPayload string, r *http.Request, region s
// Construct the query.
query.Set(xhttp.AmzDate, t.Format(iso8601Format))
query.Set(xhttp.AmzExpires, strconv.Itoa(expireSeconds))
query.Set(xhttp.AmzSignedHeaders, getSignedHeaders(extractedSignedHeaders))
query.Set(xhttp.AmzSignedHeaders, strings.Join(pSignValues.SignedHeaders, ";"))
query.Set(xhttp.AmzCredential, cred.AccessKey+SlashSeparator+pSignValues.Credential.getScope())
defaultSigParams := set.CreateStringSet(