Skip to content

Commit

Permalink
Merge pull request ruby-grape#136 from meh/patch-1
Browse files Browse the repository at this point in the history
Fix Grape::Middleware::Formatter#headers
  • Loading branch information
Michael Bleigh committed Feb 3, 2012
2 parents 4b11f63 + d0d1871 commit f7fb74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/middleware/formatter.rb
Expand Up @@ -15,7 +15,7 @@ def default_options
end

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

def before
Expand Down

0 comments on commit f7fb74a

Please sign in to comment.