debian-mirror-gitlab/lib/gitlab/middleware/static.rb
2019-02-15 15:39:39 +05:30

15 lines
288 B
Ruby

# frozen_string_literal: true
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