Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix(common): auto unescape utf-8 issue in the request body (#5185)
Anwarul Islam19362a429168
diff --git a/packages/hoppscotch-common/src/helpers/kernel/common/content.ts b/packages/hoppscotch-common/src/helpers/kernel/common/content.tsindex f80b5f4c8..c4e5cc337 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<Error, ContentType> =>pipe(parseJSONAs<unknown>(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)))),},