A request handler for Ruby on Rails applications.
Overrided method.
# File lib/phusion_passenger/railz/request_handler.rb, line 47
47: def process_request(headers, input, output)
48: headers[CONTENT_LENGTH] = headers[HTTP_CONTENT_LENGTH]
49: cgi = CGIFixed.new(headers, input, output)
50: ::Dispatcher.dispatch(cgi,
51: ::ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS,
52: cgi.stdoutput)
53: end
# File lib/phusion_passenger/railz/request_handler.rb, line 56
56: def ninja_patch_action_controller
57: if !@@ninja_patched_action_controller && defined?(::ActionController::Base) && ::ActionController::Base.private_method_defined?(:perform_action)
58: @@ninja_patched_action_controller = true
59: ::ActionController::Base.class_eval do
60: alias passenger_orig_perform_action perform_action
61:
62: def perform_action(*whatever)
63: headers[X_POWERED_BY] = PASSENGER_HEADER
64: passenger_orig_perform_action(*whatever)
65: end
66: end
67: end
68: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.