2015-02-20 11:44:07 +00:00
|
|
|
module Gitlab
|
|
|
|
module Middleware
|
|
|
|
class Static < ActionDispatch::Static
|
2018-01-27 05:35:53 +00:00
|
|
|
UPLOADS_REGEX = %r{\A/uploads(/|\z)}.freeze
|
2015-02-20 11:44:07 +00:00
|
|
|
|
|
|
|
def call(env)
|
|
|
|
return @app.call(env) if env['PATH_INFO'] =~ UPLOADS_REGEX
|
|
|
|
|
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2015-02-20 13:39:35 +00:00
|
|
|
end
|