Permalink
Browse files

[breaking] Ensure that `webSocketProxyError` also receives the error …

…to be consistent with `proxyError` events.
  • Loading branch information...
1 parent c68e038 commit c78356e9cf27a21c57e4c98ef7dd3c22abe864c2 @indexzero indexzero committed Mar 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}
//

0 comments on commit c78356e

Please sign in to comment.