From c78356e9cf27a21c57e4c98ef7dd3c22abe864c2 Mon Sep 17 00:00:00 2001 From: indexzero Date: Sat, 9 Mar 2013 05:08:55 -0500 Subject: [PATCH] [breaking] Ensure that `webSocketProxyError` also receives the error to be consistent with `proxyError` events. --- lib/node-http-proxy/http-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node-http-proxy/http-proxy.js b/lib/node-http-proxy/http-proxy.js index 7458b61..5ec206e 100644 --- a/lib/node-http-proxy/http-proxy.js +++ b/lib/node-http-proxy/http-proxy.js @@ -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); } //