diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-20 17:48:58 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-21 00:49:36 +0000 |
commit | d4a2b5dd2b85f4b2d3bb120ee1e1b0dde31bc25c (patch) | |
tree | 85866cc775a213216701ccaedf16061f15d13975 /lib/rainbows/ev_core.rb | |
parent | a085ba3586756ac1f778d2862f75889de2449b0e (diff) | |
download | rainbows-d4a2b5dd2b85f4b2d3bb120ee1e1b0dde31bc25c.tar.gz |
We get basic internal API changes from Unicorn, code simplifications coming next.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index bf00eed..9761144 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -88,7 +88,7 @@ module Rainbows class CapInput < Struct.new(:io, :client, :bytes_left) MAX_BODY = Unicorn::Const::MAX_BODY - Util = Unicorn::Util + TmpIO = Unicorn::TmpIO def self.err(client, msg) client.write(Const::ERROR_413_RESPONSE) @@ -104,9 +104,9 @@ module Rainbows if max && (len > max) err(client, "Content-Length too big: #{len} > #{max}") end - len <= MAX_BODY ? StringIO.new("") : Util.tmpio + len <= MAX_BODY ? StringIO.new("") : TmpIO.new else - max ? super(Util.tmpio, client, max) : Util.tmpio + max ? super(TmpIO.new, client, max) : TmpIO.new end end |