-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
verifyDigestHeaderが不明なダイジェストアルゴリズムでエラーになる
NotSupportedError: Unrecognized algorithm name
at new DOMException (node:internal/per_context/domexception:53:5)
at __node_internal_ (node:internal/util:670:10)
at normalizeAlgorithm (node:internal/crypto/util:321:11)
at normalizeAlgorithm (node:internal/crypto/util:293:12)
at SubtleCrypto.digest (node:internal/crypto/webcrypto:79:15)
at createBase64Digest (804:54)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async verifyRFC3230DigestHeader (844:16)
at async verifyDigestHeader (859:12)
Expected: false
ここでサポートしているものをチェックするか
node-http-message-signatures/src/digest/digest-rfc3230.ts
Lines 41 to 45 in dcb3280
| const algo = match[1] as DigestHashAlgorithm; | |
| if (!algo) { | |
| if (errorLogger) errorLogger(`Invalid Digest header algorithm: ${match[1]}`); | |
| return false; | |
| } |
NotSupportedErrorをハンドルする。(ただ、サポートしていればなんでも通すのもどうか)
Metadata
Metadata
Assignees
Labels
No labels