We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a555e65 commit 2d4278aCopy full SHA for 2d4278a
src/endpoint/s3/s3_utils.js
@@ -226,9 +226,9 @@ function parse_sse(req) {
226
}
227
228
229
- if (algorithm !== 'AES256' && algorithm !== 'aws:kms') throw new S3Error(S3Error.InvalidDigest);
+ if (algorithm !== 'AES256' && algorithm !== 'aws:kms') throw new S3Error(S3Error.InvalidArgument);
230
231
- if (algorithm === 'aws:kms' && !kms_key_id) throw new S3Error(S3Error.InvalidDigest);
+ if (algorithm === 'aws:kms' && !kms_key_id) throw new S3Error(S3Error.InvalidArgument);
232
// const md5_regex = new RegExp('/^[a-f0-9]{32}$/');
233
// if (kms_key_id && !md5_regex.test(kms_key_id)) throw new S3Error(S3Error.InvalidDigest);
234
0 commit comments