gitlab-org--gitlab-foss/lib/gitlab/middleware/static.rb
2015-02-20 16:04:03 +01:00

13 lines
257 B
Ruby

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