Class: Gitlab::Middleware::Static

Inherits:
ActionDispatch::Static
  • Object
show all
Defined in:
lib/gitlab/middleware/static.rb

Constant Summary collapse

UPLOADS_REGEX =
%r{\A/uploads(/|\z)}.freeze

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object


8
9
10
11
12
# File 'lib/gitlab/middleware/static.rb', line 8

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

  super
end