about summary refs log tree commit homepage
path: root/lib/yahns/http_response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/http_response.rb')
-rw-r--r--lib/yahns/http_response.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/yahns/http_response.rb b/lib/yahns/http_response.rb
index 6b97038..6ddb1c8 100644
--- a/lib/yahns/http_response.rb
+++ b/lib/yahns/http_response.rb
@@ -146,10 +146,7 @@ module Yahns::HttpResponse # :nodoc:
       end while true
     end
 
-    if hijack
-      hijack.call(self)
-      return :ignore
-    end
+    return response_hijacked(hijack) if hijack
 
     if body.respond_to?(:to_path)
       @state = body = Yahns::StreamFile.new(body, alive, offset, count)