Skip to content

Commit

Permalink
Fix for websocket proxying (fixes #2).
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jan 30, 2012
1 parent 62ea77a commit c25cf9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Distributor.prototype.onUpgrade = function (req, socket, head) {
debug('proxying ws request');
socket.removeListener('close', onClose);
var proxy = { port: port, host: host || 'localhost', buffer: req.buf };
self.proxy.proxyWebSocketRequest(req, res, req.head, proxy);
self.proxy.proxyWebSocketRequest(req, socket, req.head, proxy);
}
});
};
Expand Down

0 comments on commit c25cf9e

Please sign in to comment.