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
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

1 comment on commit f6f3c60

@Bill
Copy link

@Bill Bill commented on f6f3c60 Sep 9, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Um thanks for fixing this Ryan. I ran into it just now w/ Set-Cookie not being sent for my Rails app.

Please sign in to comment.