From fa2e7aa1725fecc993ee563476a6d3baa9244ccc Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 21 Aug 2024 18:19:16 -0300 Subject: use x-www-form-urlencoded --- packages/taler-util/src/http-common.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/taler-util/src/http-common.ts') diff --git a/packages/taler-util/src/http-common.ts b/packages/taler-util/src/http-common.ts index 7e7173ac5..446876b38 100644 --- a/packages/taler-util/src/http-common.ts +++ b/packages/taler-util/src/http-common.ts @@ -502,6 +502,8 @@ export function encodeBody(body: unknown): ArrayBuffer { return body.buffer; } else if (body instanceof ArrayBuffer) { return body; + } else if (body instanceof URLSearchParams) { + return body as unknown as ArrayBuffer; } else if (typeof body === "object" && body.constructor.name === "FormData") { return body as ArrayBuffer; } else if (typeof body === "object") { -- cgit v1.2.3