Skip to content

Commit

Permalink
Fixed default WS middleware.
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jan 26, 2012
1 parent 843b61f commit 0285ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distribute.js
Expand Up @@ -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();
};
Expand All @@ -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();
};

0 comments on commit 0285ca7

Please sign in to comment.