mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Removed the double check line!
Removed the double check line!
This commit is contained in:
parent
d17aa95f50
commit
ba7af51bd7
1 changed files with 0 additions and 1 deletions
|
@ -1061,7 +1061,6 @@ module Sinatra
|
|||
def static!(options = {})
|
||||
return if (public_dir = settings.public_folder).nil?
|
||||
path = File.expand_path("#{public_dir}#{URI_INSTANCE.unescape(request.path_info)}" )
|
||||
return unless path.start_with?(public_dir)
|
||||
return unless File.file?(path)
|
||||
|
||||
env['sinatra.static_file'] = path
|
||||
|
|
Loading…
Add table
Reference in a new issue