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

Force sending JSON if accept header is requesting it #669

Merged
merged 1 commit into from Jun 29, 2015

Conversation

julsemaan
Copy link
Collaborator

Description

If a client is explicitally requesting JSON through the Accept header, we should enforce that since it it removes code duplication by creating new actions just for that

Impacts

Shouldn't be any for existing code.

Delete branch after merge

NO (required for cloud)

NEWS file entries

Enhancements

  • Force a JSON response if the Accept header is set to 'application/json'

@julsemaan
Copy link
Collaborator Author

Well for now I think that this simple piece of code will do it.

I don't think we're at the stage where we'll handle more than JSON and HTML

@louismunro
Copy link
Contributor

The Hammer says it's good.

louismunro added a commit that referenced this pull request Jun 29, 2015
Force sending JSON if accept header is requesting it
@louismunro louismunro merged commit 828a7ef into inverse-inc:devel Jun 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants