Skip to content

Commit f7fb74a

Browse files
author
Michael Bleigh
committed
Merge pull request #136 from meh/patch-1
Fix Grape::Middleware::Formatter#headers
2 parents 4b11f63 + d0d1871 commit f7fb74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/middleware/formatter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def default_options
1515
end
1616

1717
def headers
18-
env.dup.inject({}){|h,(k,v)| h[k.downcase] = v; h}
18+
env.dup.inject({}){|h,(k,v)| h[k.downcase[5..-1]] = v if k.downcase.start_with?('http_'); h}
1919
end
2020

2121
def before

0 commit comments

Comments
 (0)