Skip to content

Conversation

@meh
Copy link
Contributor

@meh meh commented Feb 3, 2012

The current #headers implementation is wrong, rack sets headers as http_* so the check in #mime_array will always fail, because it should look for 'http_accept' instead.

Dunno if older versions of rack set http headers without the http_ prefix though.

The current `#headers` implementation is wrong, rack sets headers as `http_*` so the check in `#mime_array` will always fail, because it should look for `'http_accept'` instead.

Dunno if older versions of rack set http headers without the `http_` prefix though.
mbleigh pushed a commit that referenced this pull request Feb 3, 2012
Fix Grape::Middleware::Formatter#headers
@mbleigh mbleigh merged commit f7fb74a into ruby-grape:master Feb 3, 2012
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.

4 participants