fix: s3 return BadDigest (#6714)

* fix: s3 return BadDigest

* adjust error message checking

---------

Co-authored-by: chrislu <chris.lu@gmail.com>
This commit is contained in:
Konstantin Lebedev
2025-07-06 14:18:57 -07:00
committed by GitHub
co-authored by chrislu
parent 798f797158
commit fd4154cfed
3 changed files with 13 additions and 4 deletions
+7
View File
@@ -112,6 +112,13 @@ const (
ErrNoSuchTagSet
)
// Error message constants for checksum validation
const (
ErrMsgPayloadChecksumMismatch = "payload checksum does not match"
ErrMsgChunkSignatureMismatch = "chunk signature does not match"
ErrMsgChecksumAlgorithmMismatch = "checksum algorithm mismatch"
)
// error code to APIError structure, these fields carry respective
// descriptions for all the error responses.
var errorCodeResponse = map[ErrorCode]APIError{