From a4a1ecf2330a6824a1e0c64c08c05d102a466e8c Mon Sep 17 00:00:00 2001 From: Peter Suschlik Date: Thu, 8 Jan 2009 10:36:53 +0100 Subject: [PATCH] Use a power of 2 for send_file buffer --- lib/sinatra/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index f137faba..6532a24e 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -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