[breaking] Ensure that webSocketProxyError also receives the error to be consistent with proxyError events.

This commit is contained in:
indexzero 2013-03-09 05:08:55 -05:00
parent c68e038912
commit c78356e9cf

View File

@ -680,7 +680,7 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
socket.destroy();
});
self.emit('webSocketProxyError', req, socket, head);
self.emit('webSocketProxyError', err, req, socket, head);
}
//