From 19362a429168bfea9eab24b8263f6919e17b892f Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Wed, 25 Jun 2025 14:25:43 +0600 Subject: [PATCH] fix(common): auto unescape utf-8 issue in the request body (#5185) --- packages/hoppscotch-common/src/helpers/kernel/common/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hoppscotch-common/src/helpers/kernel/common/content.ts b/packages/hoppscotch-common/src/helpers/kernel/common/content.ts index f80b5f4c..c4e5cc33 100644 --- a/packages/hoppscotch-common/src/helpers/kernel/common/content.ts +++ b/packages/hoppscotch-common/src/helpers/kernel/common/content.ts @@ -12,7 +12,7 @@ const Processors = { process: (body: string): E.Either => pipe( parseJSONAs(body), - E.map((json) => content.json(json, MediaType.APPLICATION_JSON)), + E.map(() => content.text(body, MediaType.APPLICATION_JSON)), E.orElse(() => E.right(content.text(body, MediaType.TEXT_PLAIN))) ), },