diff options
author | Eric Wong <e@80x24.org> | 2015-11-14 02:47:25 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-11-18 02:20:26 +0000 |
commit | 1a2a82721bf845a3f7e7a3972bc0f41befb25c41 (patch) | |
tree | 98da87ea5d5293b31fa3fd463b6d70b3059a1be3 /lib/rainbows/process_client.rb | |
parent | 70c976bdd85bb8515fea01d6ad6074ef472fc2e0 (diff) | |
download | rainbows-1a2a82721bf845a3f7e7a3972bc0f41befb25c41.tar.gz |
unicorn lost the hijack_setup method in version 5, so we must recreate it ourselves.
Diffstat (limited to 'lib/rainbows/process_client.rb')
-rw-r--r-- | lib/rainbows/process_client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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) |