Skip to content

Commit 19362a4

Browse files
authored
fix(common): auto unescape utf-8 issue in the request body (hoppscotch#5185)
1 parent 427a181 commit 19362a4

File tree

1 file changed

+1
-1
lines changed
  • packages/hoppscotch-common/src/helpers/kernel/common

1 file changed

+1
-1
lines changed

packages/hoppscotch-common/src/helpers/kernel/common/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Processors = {
1212
process: (body: string): E.Either<Error, ContentType> =>
1313
pipe(
1414
parseJSONAs<unknown>(body),
15-
E.map((json) => content.json(json, MediaType.APPLICATION_JSON)),
15+
E.map(() => content.text(body, MediaType.APPLICATION_JSON)),
1616
E.orElse(() => E.right(content.text(body, MediaType.TEXT_PLAIN)))
1717
),
1818
},

0 commit comments

Comments
 (0)