Skip to content
This repository
Browse code

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

  • Loading branch information...
commit f6f3c60938ea3b08f3292a2480e6753c293584e5 1 parent 994e77f
authored February 08, 2010 rtomayko committed February 08, 2010

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/rack/utils.rb
3  lib/rack/utils.rb
@@ -292,7 +292,8 @@ def to_hash
292 292
       end
293 293
 
294 294
       def [](k)
295  
-        super(@names[k] ||= @names[k.downcase])
  295
+        super(@names[k]) if @names[k]
  296
+        super(@names[k.downcase])
296 297
       end
297 298
 
298 299
       def []=(k, v)

1 note on commit f6f3c60

Bill Burcham

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.
Something went wrong with that request. Please try again.