Permalink
Browse files

allow StaticFile#close to be called multiple times

  • Loading branch information...
rkh committed Jun 10, 2011
1 parent b727870 commit 66fac5bd2110879f2876c85877cbfedda0c9c105
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/sinatra/base.rb
View
@@ -284,6 +284,10 @@ def byte_ranges(env, size)
ranges
end
+ def close
+ super unless closed?
+ end
+
CHUNK_SIZE = 8192
def each

0 comments on commit 66fac5b

Please sign in to comment.