Commit d0d1871
committed
Fix Grape::Middleware::Formatter#headers
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.1 parent 4b11f63 commit d0d1871
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments