diff --git a/lib/plugins/auth.js b/lib/plugins/auth.js index 352ea2c..934fcdc 100644 --- a/lib/plugins/auth.js +++ b/lib/plugins/auth.js @@ -18,7 +18,7 @@ AuthPlugin.prototype._setup = function() { var self = this; var rail = this._rail; - // rail.on('plugin-configure', function(call, options, request) { + // rail.on('plugin-configure', function(call, options) { // // }); }; diff --git a/lib/plugins/cache.js b/lib/plugins/cache.js index 8e5ded2..e339f18 100644 --- a/lib/plugins/cache.js +++ b/lib/plugins/cache.js @@ -18,7 +18,7 @@ CachePlugin.prototype._setup = function() { var self = this; var rail = this._rail; - // rail.on('plugin-configure', function(call, options, request) { + // rail.on('plugin-configure', function(call, options) { // // }); }; diff --git a/lib/plugins/redirect.js b/lib/plugins/redirect.js index 44096fb..f3c019d 100644 --- a/lib/plugins/redirect.js +++ b/lib/plugins/redirect.js @@ -16,9 +16,9 @@ function redirectPlugin(rail, opt_options) { function interceptRequest(call, options, request) { - call.emit('redirect', options); // send the request made in `interceptResponse` below request.end(); + call.emit('redirect', options); }