diff options
Diffstat (limited to 'lib/rainbows/writer_thread_spawn/client.rb')
-rw-r--r-- | lib/rainbows/writer_thread_spawn/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/writer_thread_spawn/client.rb b/lib/rainbows/writer_thread_spawn/client.rb index de51c17..84c1e7c 100644 --- a/lib/rainbows/writer_thread_spawn/client.rb +++ b/lib/rainbows/writer_thread_spawn/client.rb @@ -21,7 +21,7 @@ class Rainbows::WriterThreadSpawn::Client < Struct.new(:to_io, :q, :thr) } end - if Rainbows::Response::COPY_STREAM + if Rainbows::Response::COPY_STREAM || IO.method_defined?(:trysendfile) def write_response(status, headers, body, alive) self.q ||= queue_writer if body.respond_to?(:close) |