Use a power of 2 for send_file buffer

This commit is contained in:
Peter Suschlik 2009-01-08 10:36:53 +01:00 committed by Ryan Tomayko
parent d4f9d0043c
commit a4a1ecf233
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ module Sinatra
class StaticFile < ::File #:nodoc:
alias_method :to_path, :path
def each
while buf = read(8196)
while buf = read(8192)
yield buf
end
end