Welcome to mirror list, hosted at ThFree Co, Russian Federation.

static.rb « middleware « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85ffa8aca68ccaae90c7bcf3159b2d33d734a887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
end