Class: Rack::PerftoolsProfiler::ReturnPasswordError

Inherits:
Action
  • Object
show all
Includes:
Utils
Defined in:
lib/rack/perftools_profiler/return_password_error.rb

Instance Method Summary collapse

Methods included from Utils

#let

Methods inherited from Action

#act, for_env, #initialize

Constructor Details

This class inherits a constructor from Rack::PerftoolsProfiler::Action

Instance Method Details

#responseObject



6
7
8
9
10
# File 'lib/rack/perftools_profiler/return_password_error.rb', line 6

def response
  [401, 
   {'Content-Type' => 'text/plain'}, 
   ["Profiling is password-protected. Password is incorrect.\nProvide a password using the 'profile' GET param:\nhttp://domain.com/foobar?profile=PASSWORD"]]
end