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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/stream_file.rb b/lib/yahns/stream_file.rb
index bcca0d6..793f0de 100644
--- a/lib/yahns/stream_file.rb
+++ b/lib/yahns/stream_file.rb
@@ -31,7 +31,7 @@ class Yahns::StreamFile # :nodoc:
       end
     end
     @sf_offset = offset
-    @sf_count = count || @tmpio.stat.size
+    @sf_count = count || @tmpio.size
     @wbuf_persist = persist # whether or not we keep the connection alive
     @body = body
   end