From 1a2a82721bf845a3f7e7a3972bc0f41befb25c41 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 14 Nov 2015 02:47:25 +0000 Subject: http_parser: workaround hijack changes in unicorn 5 unicorn lost the hijack_setup method in version 5, so we must recreate it ourselves. --- lib/rainbows/process_client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/process_client.rb') diff --git a/lib/rainbows/process_client.rb b/lib/rainbows/process_client.rb index 492b8a6..a39d6cd 100644 --- a/lib/rainbows/process_client.rb +++ b/lib/rainbows/process_client.rb @@ -39,7 +39,7 @@ module Rainbows::ProcessClient set_input(env, hp) env['REMOTE_ADDR'] = kgio_addr - hp.hijack_setup(env, to_io) + hp.hijack_setup(to_io) status, headers, body = APP.call(env.merge!(RACK_DEFAULTS)) if 100 == status.to_i @@ -72,7 +72,7 @@ module Rainbows::ProcessClient begin set_input(env, hp) env['REMOTE_ADDR'] = kgio_addr - hp.hijack_setup(env, to_io) + hp.hijack_setup(to_io) status, headers, body = APP.call(env.merge!(RACK_DEFAULTS)) if 100 == status.to_i write("HTTP/1.1 100 Continue\r\n\r\n".freeze) -- cgit v1.2.3-24-ge0c7