gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 13/20: default to content type json


From: gnunet
Subject: [taler-wallet-core] 13/20: default to content type json
Date: Mon, 25 Sep 2023 19:51:17 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

commit 5640f0a67dcc31fa2b5fa0992abca8a55bc00dd8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Sep 22 18:34:35 2023 -0300

    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<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"] =

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]