http_request: drop conditional assignment for hijack
authorEric Wong <normalperson@yhbt.net>
Sat, 9 Feb 2013 01:13:17 +0000 (9 01:13 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 9 Feb 2013 01:13:17 +0000 (9 01:13 +0000)
As far as I can tell, this was never necessary.

lib/unicorn/http_request.rb

index 681c0ca..6b20431 100644 (file)
@@ -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.