New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently mandatory use of "Content-Type": "application/json" header #13
Comments
If you want it to parse |
It is the way to use this module from now on, yes. What content-type are you sending your JSON as, if I may ask? |
I was not setting up the Content-Type header at all, but now i am doing it the correct way. The issue ocurred during the migration of an express project from 3.x to 4.0. Thanks for the quick response! |
No problem. |
Hi, just stumbled upon this issue. This new behavior to only parse if the Any chances that in the very near future automatic detection/parsing (or even providing a custom Content-type to Thanks |
@diosney can you file this feature request as a new issue instead of re-using an issue that is different from what you are asking? |
Done! #15. |
In the past, this module used to parse json data no matter the Content-Type header was set or not, but since the inclusion of the type-is module, it has changed and now even if the data sent from the client is in json format, it won't parse it unless the Content-Type header is set to application/json.
Is this the way to use this module from now on or is this something intended to be changed in the future?
Cheers!
The text was updated successfully, but these errors were encountered: