Permalink
Browse files

Use a power of 2 for send_file buffer

  • Loading branch information...
1 parent d4f9d00 commit a4a1ecf2330a6824a1e0c64c08c05d102a466e8c @splattael splattael committed with rtomayko Jan 8, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -135,7 +135,7 @@ def send_file(path, opts={})
class StaticFile < ::File #:nodoc:
alias_method :to_path, :path
def each
- while buf = read(8196)
+ while buf = read(8192)
yield buf
end
end

0 comments on commit a4a1ecf

Please sign in to comment.