Skip to content

Commit

Permalink
Use a power of 2 for send_file buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
splattael authored and rtomayko committed Jan 9, 2009
1 parent d4f9d00 commit a4a1ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit a4a1ecf

Please sign in to comment.