about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-14 05:33:14 +0000
committerEric Wong <e@80x24.org>2015-09-14 05:34:17 +0000
commit25904f92de4c456d99fe4210430d58296f84a0af (patch)
tree347e3558ea7922f9dd161d99d58cbf484af628b9
parent7c79abb4f1349a843bbddcec83c924cd2dc07af4 (diff)
Not all responses are seekable, so do not attempt to pass seek
arguments to them since Ruby may attempt to seek (and fail!).
-rw-r--r--lib/rainbows/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb
index 8a0daf8..8d0de1d 100644
--- a/lib/rainbows/response.rb
+++ b/lib/rainbows/response.rb
@@ -129,7 +129,7 @@ module Rainbows::Response
       module CopyStream
         def write_body_file(body, range)
           range ? COPY_STREAM.copy_stream(body, self, range[1], range[0]) :
-                  COPY_STREAM.copy_stream(body, self, nil, 0)
+                  COPY_STREAM.copy_stream(body, self)
         end
       end
       include CopyStream