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

Use want_json for responses #155

Closed
jwag956 opened this issue Aug 9, 2019 · 0 comments · Fixed by #179
Closed

Use want_json for responses #155

jwag956 opened this issue Aug 9, 2019 · 0 comments · Fixed by #179
Assignees

Comments

@jwag956
Copy link
Member

jwag956 commented Aug 9, 2019

We know have the concept of want_json() which will look at the Accept header - use that for ALL responses instead of request.is_json().

This will fix strange things like having to send in an empty body in order to get a json response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant