about summary refs log tree commit homepage
path: root/lib/yahns/stream_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/stream_file.rb')
-rw-r--r--lib/yahns/stream_file.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/stream_file.rb b/lib/yahns/stream_file.rb
index fdba5bf..6cce7a0 100644
--- a/lib/yahns/stream_file.rb
+++ b/lib/yahns/stream_file.rb
@@ -27,8 +27,8 @@ class Yahns::StreamFile # :nodoc:
         retry
       end
     end
-    @sf_offset = offset
-    @sf_count = count || @tmpio.size
+    @sf_offset = offset || 0
+    @sf_count = count
     @wbuf_persist = persist # whether or not we keep the connection alive
     @body = body
   end