From 60c6395a517d88cd7dd2ab5371bacfe357ab5321 Mon Sep 17 00:00:00 2001 From: Nullptrderef Date: Sun, 21 Apr 2024 09:06:59 +0200 Subject: RFC7232 3.1 and 3.2, again --- packages/taler-wallet-core/src/backup/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core') diff --git a/packages/taler-wallet-core/src/backup/index.ts b/packages/taler-wallet-core/src/backup/index.ts index c32ed8b8c..5dccf1998 100644 --- a/packages/taler-wallet-core/src/backup/index.ts +++ b/packages/taler-wallet-core/src/backup/index.ts @@ -232,10 +232,10 @@ async function runBackupCycleForProvider( headers: { "content-type": "application/octet-stream", "sync-signature": syncSigResp.sig, - "if-none-match": newHash, + "if-none-match": JSON.stringify(newHash), ...(provider.lastBackupHash ? { - "if-match": provider.lastBackupHash, + "if-match": JSON.stringify(provider.lastBackupHash), } : {}), }, -- cgit v1.2.3