gitlab-org--gitlab-foss/lib/gitlab/middleware/static.rb

14 lines
257 B
Ruby
Raw Normal View History

module Gitlab
module Middleware
class Static < ActionDispatch::Static
2018-01-27 00:35:53 -05:00
UPLOADS_REGEX = %r{\A/uploads(/|\z)}.freeze
def call(env)
return @app.call(env) if env['PATH_INFO'] =~ UPLOADS_REGEX
super
end
end
end
2015-02-20 08:39:35 -05:00
end