mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Return ErrContentSHA256Mismatch when sha256sum is invalid (#5188)
This commit is contained in:
committed by
Dee Koder
parent
67f66c40c1
commit
2a0a62b78d
@@ -289,7 +289,7 @@ func doesPresignedSignatureMatch(hashedPayload string, r *http.Request, region s
|
||||
/// Verify finally if signature is same.
|
||||
|
||||
// Get canonical request.
|
||||
presignedCanonicalReq := getCanonicalRequest(extractedSignedHeaders, unsignedPayload, encodedQuery, req.URL.Path, req.Method)
|
||||
presignedCanonicalReq := getCanonicalRequest(extractedSignedHeaders, hashedPayload, encodedQuery, req.URL.Path, req.Method)
|
||||
|
||||
// Get string to sign from canonical request.
|
||||
presignedStringToSign := getStringToSign(presignedCanonicalReq, t, pSignValues.Credential.getScope())
|
||||
|
||||
Reference in New Issue
Block a user