about summary refs log tree commit homepage
path: root/lib/rainbows/ev_core.rb
diff options
context:
space:
mode:
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