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 HTTP Accept for choosing serialization format #14

Merged
merged 1 commit into from
Nov 13, 2016
Merged

Conversation

foca
Copy link
Owner

@foca foca commented Nov 13, 2016

By default, when using the Rack helper, Granola will check among the different registered renderers and see which one matches the request's Accept header best.

If none match, :json will be used.

Fixes #11

By default, when using the Rack helper, Granola will check among the
different registered renderers and see which one matches the request's
Accept header.

If none match, `:json` will be used.
@foca foca merged commit 821a10f into master Nov 13, 2016
@foca foca deleted the accept-header branch November 13, 2016 22:21
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.

None yet

1 participant