fix(common): auto unescape utf-8 issue in the request body (#5185)
This commit is contained in:
parent
427a1811a5
commit
19362a4291
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue