From 31cf77e7aa2f2e6065e7ace44e55c3f042b51f1b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 16 Nov 2010 16:16:42 -0800 Subject: reimplement client_max_body_size handlers This allows the client_max_body_size implementation to not rely on Unicorn::TeeInput internals, allowing it to be used with Unicorn::StreamInput (or any other (nearly) Rack::Lint-compatible input object). --- lib/rainbows/revactor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/revactor.rb') diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb index a0b4bbf..9e69251 100644 --- a/lib/rainbows/revactor.rb +++ b/lib/rainbows/revactor.rb @@ -51,7 +51,7 @@ module Rainbows::Revactor env[CLIENT_IO] = client env[RACK_INPUT] = 0 == hp.content_length ? - NULL_IO : TeeInput.new(TeeSocket.new(client), hp) + NULL_IO : Unicorn::TeeInput.new(TeeSocket.new(client), hp) env[REMOTE_ADDR] = remote_addr status, headers, body = app.call(env.update(RACK_DEFAULTS)) -- cgit v1.2.3-24-ge0c7