Skip to content

Application/json body request with an extended content-type header (charset) should not be coerced #267

Description

@ebourmalo

The initial check to turn off the coercion of the request body when the header is application/json was:

ctx.req.get('content-type') === 'application/json'

If the content-type header is extended with the charset definition (i.e application/json;charset=UTF-8), the body is coerced and that is NOT what we want :)

Here is the PR for a fix, updating the check for allowing this use case: #266

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions