Skip to content
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

POST with Content-Type application/json doesn't work in playground #23

Closed
crichey opened this issue Aug 18, 2014 · 1 comment
Closed

POST with Content-Type application/json doesn't work in playground #23

crichey opened this issue Aug 18, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@crichey
Copy link

@crichey crichey commented Aug 18, 2014

The playground submits the content-type as form instead of application/json even though the method is annotated with consumes = ['application/json']. Therefore when used in the playground the application rejects the request.

@fabiomaffioletti
Copy link
Owner

@fabiomaffioletti fabiomaffioletti commented Nov 28, 2014

Not able to reproduce. Here is the request sent when doing a PUT:

Request URL:http://jsondoc.eu01.aws.af.cm/api/cities/1
Request Method:PUT
Status Code:200 OK
Request Headersview source
Accept:application/json
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8,it;q=0.6
Cache-Control:no-cache
Connection:keep-alive
Content-Length:61
Content-Type:application/json

Please open a new issue if the problem is still there, describing how to reproduce it.

@fabiomaffioletti fabiomaffioletti added this to the 1.0.6 milestone Nov 28, 2014
@fabiomaffioletti fabiomaffioletti self-assigned this Nov 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.