@@ -30,7 +30,7 @@ Controller.extend = function extend(child) {
3030} ;
3131
3232// Tries to process the HTTP request
33- Controller . prototype . handleRequest = function ( request , response , next ) {
33+ Controller . prototype . handleRequest = function ( request , response , next , settings ) {
3434 // Add a `parsedUrl` field to `request`,
3535 // containing the parsed request URL, resolved against the base URL
3636 if ( ! request . parsedUrl ) {
@@ -41,7 +41,7 @@ Controller.prototype.handleRequest = function (request, response, next) {
4141
4242 // Try to handle the request
4343 var self = this ;
44- try { this . _handleRequest ( request , response , done ) ; }
44+ try { this . _handleRequest ( request , response , done , settings ) ; }
4545 catch ( error ) { done ( error ) ; }
4646 function done ( error ) {
4747 if ( self ) {
@@ -55,7 +55,7 @@ Controller.prototype.handleRequest = function (request, response, next) {
5555} ;
5656
5757// Tries to process the HTTP request in an implementation-specific way
58- Controller . prototype . _handleRequest = function ( request , response , next ) {
58+ Controller . prototype . _handleRequest = function ( request , response , next , settings ) {
5959 next ( ) ;
6060} ;
6161
0 commit comments