debian-mirror-gitlab/lib/gitlab/middleware/static.rb
2018-03-17 18:26:18 +05:30

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