diff options
Diffstat (limited to 'lib/rainbows/writer_thread_pool')
-rw-r--r-- | lib/rainbows/writer_thread_pool/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/writer_thread_pool/client.rb b/lib/rainbows/writer_thread_pool/client.rb index f02826e..fd537ed 100644 --- a/lib/rainbows/writer_thread_pool/client.rb +++ b/lib/rainbows/writer_thread_pool/client.rb @@ -18,7 +18,7 @@ class Rainbows::WriterThreadPool::Client < Struct.new(:to_io, :q) } end - if IO.respond_to?(:copy_stream) || IO.method_defined?(:trysendfile) + if Rainbows::Response::COPY_STREAM def write_response(status, headers, body, alive) if body.respond_to?(:close) write_response_close(status, headers, body, alive) |