Closed ebourmalo closed 8 years ago
The initial check to turn off the coercion of the request body when the header is application/json was:
application/json
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 :)
content-type
application/json;charset=UTF-8
Here is the PR for a fix, updating the check for allowing this use case: https://github.com/strongloop/strong-remoting/pull/266
Never mind, I see this is different than #264 - good patch, :+1:.
The initial check to turn off the coercion of the request body when the header is
application/json
was:If the
content-type
header is extended with the charset definition (i.eapplication/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: https://github.com/strongloop/strong-remoting/pull/266