From 4912088ead51b729860f8d46ebc9dd7be7dcec93 Mon Sep 17 00:00:00 2001 From: Malte-Thorben Bruns Date: Thu, 23 Apr 2015 22:26:33 +0200 Subject: [PATCH] plugins: fixes --- lib/plugins/auth.js | 2 +- lib/plugins/cache.js | 2 +- lib/plugins/redirect.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); }