gitlab-org--gitlab-foss/lib/gitlab/middleware/static.rb
2018-02-01 02:06:07 +09:00

13 lines
257 B
Ruby

module Gitlab
module Middleware
class Static < ActionDispatch::Static
UPLOADS_REGEX = %r{\A/uploads(/|\z)}.freeze
def call(env)
return @app.call(env) if env['PATH_INFO'] =~ UPLOADS_REGEX
super
end
end
end
end