@@ -30,7 +30,7 @@ Controller.extend = function extend(child) {
30
30
} ;
31
31
32
32
// Tries to process the HTTP request
33
- Controller . prototype . handleRequest = function ( request , response , next ) {
33
+ Controller . prototype . handleRequest = function ( request , response , next , settings ) {
34
34
// Add a `parsedUrl` field to `request`,
35
35
// containing the parsed request URL, resolved against the base URL
36
36
if ( ! request . parsedUrl ) {
@@ -41,7 +41,7 @@ Controller.prototype.handleRequest = function (request, response, next) {
41
41
42
42
// Try to handle the request
43
43
var self = this ;
44
- try { this . _handleRequest ( request , response , done ) ; }
44
+ try { this . _handleRequest ( request , response , done , settings ) ; }
45
45
catch ( error ) { done ( error ) ; }
46
46
function done ( error ) {
47
47
if ( self ) {
@@ -55,7 +55,7 @@ Controller.prototype.handleRequest = function (request, response, next) {
55
55
} ;
56
56
57
57
// 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 ) {
59
59
next ( ) ;
60
60
} ;
61
61
0 commit comments