Permalink
Browse files

Not sure about the chunking code here

  • Loading branch information...
1 parent 7bc014a commit 9da22df69f2cf9291d2d859d8a9c877e2d1e41c7 @raggi committed Aug 22, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/thin/response.rb
@@ -91,8 +91,8 @@ def each(connection = nil)
# connection can treat this body as async (and not terminate the
# connection prematurely)
@body = EM::FileStreamer.new(connection, @body.to_path)
- when Rack::Chunked === @body && b = @body.instance_variable_get(:@body) && b.respond_to?(:to_path)
- @body = EM::FileStreamer.new(connection, b.to_path, :http_chunks => true)
+ # when connection && Rack::Chunked === @body && b = @body.instance_variable_get(:@body) && b.respond_to?(:to_path)
+ # @body = EM::FileStreamer.new(connection, b.to_path, :http_chunks => true)
else
@body.each { |chunk| yield chunk }
end

0 comments on commit 9da22df

Please sign in to comment.