[PATCH 2/2] http_request: drop conditional assignment for hijack

Eric Wong normalperson at yhbt.net
Sat Feb 9 01:16:18 UTC 2013


As far as I can tell, this was never necessary.
---
 lib/unicorn/http_request.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 681c0ca..6b20431 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -108,7 +108,7 @@ class Unicorn::HttpParser
     end
 
     def hijack_setup(e, socket)
-      e[RACK_HIJACK] = proc { e[RACK_HIJACK_IO] ||= socket }
+      e[RACK_HIJACK] = proc { e[RACK_HIJACK_IO] = socket }
     end
   else
     # old Rack, do nothing.
-- 
1.8.1.2.526.gf51a757



More information about the mongrel-unicorn mailing list