From 0285ca7087c52c27bd51be5c225f30ad3e3bd210 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 26 Jan 2012 10:56:12 -0800 Subject: [PATCH] Fixed default WS middleware. --- distribute.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribute.js b/distribute.js index 0c79ab9..4b3e04f 100644 --- a/distribute.js +++ b/distribute.js @@ -234,7 +234,7 @@ Distributor.prototype.defaultHTTPError = function (err, req, res, next) { * @api upgrade */ -Distributor.prototype.defaultWS = function (err, req, socket, head) { +Distributor.prototype.defaultWS = function (req, socket, next) { debug('executing default ws middleware'); socket.end(); }; @@ -245,7 +245,7 @@ Distributor.prototype.defaultWS = function (err, req, socket, head) { * @api upgrade */ -Distributor.prototype.defaultWSError = function (err, req, socket, head) { +Distributor.prototype.defaultWSError = function (err, req, socket, next) { debug('executing default ws error middleware'); socket.end(); };