about summary refs log tree commit homepage
path: root/lib/rainbows/ev_core.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-28 00:30:34 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-28 00:30:34 +0000
commit5cde25e2fb6f7de9143a40da5bad4b91b582fcab (patch)
tree5824625afe3859cb6994e050f81448efa89dae39 /lib/rainbows/ev_core.rb
parent63d95ac64949a642596946b2b44b2d0bb7b9fefb (diff)
downloadrainbows-5cde25e2fb6f7de9143a40da5bad4b91b582fcab.tar.gz
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r--lib/rainbows/ev_core.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb
index d4ad040..74e67f3 100644
--- a/lib/rainbows/ev_core.rb
+++ b/lib/rainbows/ev_core.rb
@@ -7,6 +7,7 @@ module Rainbows
     include Unicorn
     include Rainbows::Const
     G = Rainbows::G
+    NULL_IO = Unicorn::HttpRequest::NULL_IO
 
     # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ]
     ASYNC_CALLBACK = "async.callback".freeze
@@ -40,7 +41,7 @@ module Rainbows
         @state = :body
         len = @hp.content_length
         if len == 0
-          @input = HttpRequest::NULL_IO
+          @input = NULL_IO
           app_call # common case
         else # nil or len > 0
           # since we don't do streaming input, we have no choice but