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)}

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 UPLOADS_REGEX.match?(env['PATH_INFO'])

  super
end