Skip to content

Commit c78356e

Browse files
committed
[breaking] Ensure that webSocketProxyError also receives the error to be consistent with proxyError events.
1 parent c68e038 commit c78356e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node-http-proxy/http-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
680680
socket.destroy();
681681
});
682682

683-
self.emit('webSocketProxyError', req, socket, head);
683+
self.emit('webSocketProxyError', err, req, socket, head);
684684
}
685685

686686
//

0 commit comments

Comments
 (0)