From e166cfe5e8d648b544b1291ec157bd234a425e21 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 8 Feb 2013 22:45:20 +0000 Subject: hijacking support for Rack 1.5.x users This requires Rack 1.5.x and unicorn 4.6.0 for hijacking support. Older versions of Rack continue to work fine, but we must use unicorn 4.6.0 features to support this. --- lib/rainbows/revactor/client/methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/revactor/client/methods.rb') diff --git a/lib/rainbows/revactor/client/methods.rb b/lib/rainbows/revactor/client/methods.rb index b2e1847..592c996 100644 --- a/lib/rainbows/revactor/client/methods.rb +++ b/lib/rainbows/revactor/client/methods.rb @@ -36,7 +36,7 @@ module Rainbows::Revactor::Client::Methods end def write_response(status, headers, body, alive) - super(status, headers, body, alive) + super(status, headers, body, alive) or return alive && @ts and @hp.buf << @ts.leftover end -- cgit v1.2.3-24-ge0c7