Skip to content
Browse files

allow StaticFile#close to be called multiple times

  • Loading branch information...
1 parent b727870 commit 66fac5bd2110879f2876c85877cbfedda0c9c105 @rkh rkh committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/sinatra/base.rb
View
4 lib/sinatra/base.rb
@@ -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.
Something went wrong with that request. Please try again.