diff options
Diffstat (limited to 'lib/rainbows/sendfile.rb')
-rw-r--r-- | lib/rainbows/sendfile.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/sendfile.rb b/lib/rainbows/sendfile.rb index c2e63be..2804217 100644 --- a/lib/rainbows/sendfile.rb +++ b/lib/rainbows/sendfile.rb @@ -65,7 +65,7 @@ class Rainbows::Sendfile < Struct.new(:app) # fallback in case our +to_path+ doesn't get handled for whatever reason def each(&block) buf = '' - File.open(to_path, 'rb') do |fp| + File.open(to_path) do |fp| yield buf while fp.read(0x4000, buf) end end |