Browse files

Don't set header to nil on HeaderHash#include?

  • Loading branch information...
1 parent 994e77f commit f6f3c60938ea3b08f3292a2480e6753c293584e5 Alex Beregszaszi committed with rtomayko Feb 8, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rack/utils.rb
View
3 lib/rack/utils.rb
@@ -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)

1 comment on commit f6f3c60

@Bill

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.