-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
format :json
parses other content-types than application/json (eg. application/x-www-form-urlencoded)
#1403
Comments
I will do it as soon as possibile |
@dblock
|
You should make changes and push to your fork, not to this repo, this should be helpful. |
I have created an example that shows that even if it is setted `format :json`, if I send a post request with content_type: application/x-www-form-urlencoded it does return `201`
Thanks, I have created the PR, sorry but I had never done it. |
This works by design, the documentation is correct. A JSON API does parse application/x-www-form-urlencoded date. I would be curious to see what a PR "fixing" this looks like, and would like to open it for discussion. |
format :json
does not seem to work as documentedformat :json
parses other content-types than application/json (eg. application/x-www-form-urlencoded)
I want my API to accept only
application/json
as a Content-Type. Reading the docs it seems that this should do the work:but my API still accept other Content-Types
The text was updated successfully, but these errors were encountered: