Skip to content

Commit

Permalink
Don't set header to nil on HeaderHash#include?
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Beregszaszi authored and rtomayko committed Feb 8, 2010
1 parent 994e77f commit f6f3c60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ def to_hash
end

def [](k)
super(@names[k] ||= @names[k.downcase])
super(@names[k]) if @names[k]
super(@names[k.downcase])
end

def []=(k, v)
Expand Down

0 comments on commit f6f3c60

Please sign in to comment.