default to content type json

This commit is contained in:
Sebastian 2023-09-22 18:34:35 -03:00
parent a59df74fb2
commit 5640f0a67d
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069

View File

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