Use a power of 2 for send_file buffer
This commit is contained in:
parent
d4f9d0043c
commit
a4a1ecf233
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue