Method: Rack::Pubcookie#call
- Defined in:
- lib/rack/pubcookie.rb
#call(env) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/rack/pubcookie.rb', line 16 def call env request = Rack::Request.new env if request.path == '/auth/pubcookie' response = Rack::Response.new login_page_html else request.env['REMOTE_USER'] = extract_username request status, headers, body = @app.call(request.env) response = Rack::Response.new body, status, headers request, response end response.finish end |