Class: Gitlab::Middleware::Static

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

Constant Summary collapse

UPLOADS_REGEX =
/\A\/uploads(\/|\z)/.freeze

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object


6
7
8
9
10
# File 'lib/gitlab/middleware/static.rb', line 6

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

  super
end