commit 5640f0a67dcc31fa2b5fa0992abca8a55bc00dd8 parent a59df74fb2b4374fd58f68fd4abaffe623cd54d6 Author: Sebastian <sebasjm@gmail.com> Date: Fri, 22 Sep 2023 18:34:35 -0300 default to content type json Diffstat:
| M | 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 @@ -48,7 +48,7 @@ export async function defaultRequestHandler<T>( )}`; } 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"] =