From 5640f0a67dcc31fa2b5fa0992abca8a55bc00dd8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 22 Sep 2023 18:34:35 -0300 Subject: [PATCH] default to content type json --- packages/web-util/src/utils/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-util/src/utils/request.ts b/packages/web-util/src/utils/request.ts index 8ce21b0e1..ef4d8e847 100644 --- a/packages/web-util/src/utils/request.ts +++ b/packages/web-util/src/utils/request.ts @@ -48,7 +48,7 @@ export async function defaultRequestHandler( )}`; } requestHeaders["Content-Type"] = - options.contentType === "json" ? "application/json" : "text/plain"; + !options.contentType || options.contentType === "json" ? "application/json" : "text/plain"; if (options.talerAmlOfficerSignature) { requestHeaders["Taler-AML-Officer-Signature"] =