summary refs log tree commit
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2010-09-22 18:27:15 +0200
committerthedarkone <thedarkone2@gmail.com>2010-09-22 18:27:15 +0200
commit11e509b3f155c609c669dab4f9bb0daf8ec4ccef (patch)
tree4e48b0ad0a09c788c464ffe0ac204389c939df69
parent294c1853ad5c6a0286221f7b2046ec7900f70775 (diff)
downloadrack-11e509b3f155c609c669dab4f9bb0daf8ec4ccef.tar.gz
Revert "Don't set header to nil on HeaderHash#include?"
The change is a bit messy.

This reverts commit f6f3c60938ea3b08f3292a2480e6753c293584e5.
-rw-r--r--lib/rack/utils.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index 3dcedbe7..b39284ff 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -319,8 +319,7 @@ module Rack
       end
 
       def [](k)
-        super(@names[k]) if @names[k]
-        super(@names[k.downcase])
+        super(@names[k] ||= @names[k.downcase])
       end
 
       def []=(k, v)