BigW Consortium Gitlab

static.rb 257 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
module Gitlab
  module Middleware
    class Static < ActionDispatch::Static
      UPLOADS_REGEX = /\A\/uploads(\/|\z)/.freeze

      def call(env)
        return @app.call(env) if env['PATH_INFO'] =~ UPLOADS_REGEX

        super
      end
    end
  end
Douwe Maan committed
13
end