diff options
author | Nullptrderef <nullptrderef@proton.me> | 2024-04-21 09:05:31 +0200 |
---|---|---|
committer | Nullptrderef <nullptrderef@proton.me> | 2024-04-21 09:05:31 +0200 |
commit | 3dd6607d3b45438bf559d238e1e0eba0b443e7bd (patch) | |
tree | 6c925d87d470efc503e1804500598118659745a7 /packages/anastasis-core | |
parent | febcf372eecce2cdfed6dead0933d46b8797e2e1 (diff) | |
download | wallet-core-3dd6607d3b45438bf559d238e1e0eba0b443e7bd.tar.xz |
comply with RFC7232 3.2
Diffstat (limited to 'packages/anastasis-core')
-rw-r--r-- | packages/anastasis-core/src/index.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/anastasis-core/src/index.ts b/packages/anastasis-core/src/index.ts index 9a774d0ff..cbb94a5d4 100644 --- a/packages/anastasis-core/src/index.ts +++ b/packages/anastasis-core/src/index.ts @@ -43,7 +43,10 @@ import { URL, j2s, } from "@gnu-taler/taler-util"; -import { HttpResponse, createPlatformHttpLib } from "@gnu-taler/taler-util/http"; +import { + HttpResponse, + createPlatformHttpLib, +} from "@gnu-taler/taler-util/http"; import { anastasisData } from "./anastasis-data.js"; import { codecForChallengeInstructionMessage, @@ -649,7 +652,7 @@ async function uploadSecret( method: "POST", headers: { "Anastasis-Policy-Signature": encodeCrock(sig), - "If-None-Match": encodeCrock(bodyHash), + "If-None-Match": JSON.stringify(encodeCrock(bodyHash)), [ANASTASIS_HTTP_HEADER_POLICY_META_DATA]: metadataEnc, ...(paySecret ? { |