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

feature: Utilize want_json() for responses #179

Merged
merged 1 commit into from
Sep 12, 2019
Merged

feature: Utilize want_json() for responses #179

merged 1 commit into from
Sep 12, 2019

Conversation

jwag956
Copy link
Member

@jwag956 jwag956 commented Sep 12, 2019

is_json() just looks at Content-Type - which in 90% of cases is fine - but in some
cases (and to be more spec-compliant) we should really be honoring the Accept header.
This adds that into all our view responses.

closes: #155

is_json() just looks at Content-Type - which in 90% of cases is fine - but in some
cases (and to be more spec-compliant) we should really be honoring the Accept header.
This adds that into all our view responses.
@jwag956 jwag956 merged commit cf4402f into master Sep 12, 2019
@jwag956 jwag956 deleted the i155 branch September 12, 2019 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use want_json for responses
1 participant