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.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb
index 826dce6..61853ab 100644
--- a/lib/rainbows/ev_core.rb
+++ b/lib/rainbows/ev_core.rb
@@ -83,8 +83,7 @@ module Rainbows::EvCore
       @hp.parse or return want_more
       @state = :body
       if 0 == @hp.content_length
-        @input = NULL_IO
-        app_call # common case
+        app_call NULL_IO # common case
       else # nil or len > 0
         prepare_request_body
       end
@@ -92,7 +91,7 @@ module Rainbows::EvCore
       if @hp.body_eof?
         if @hp.content_length
           @input.rewind
-          app_call
+          app_call @input
         else
           @state = :trailers
           on_read(data)
@@ -107,7 +106,7 @@ module Rainbows::EvCore
     when :trailers
       if @hp.trailers(@env, @buf << data)
         @input.rewind
-        app_call
+        app_call @input
       else
         want_more
       end