mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[breaking] Ensure that webSocketProxyError also receives the error to be consistent with proxyError events.
This commit is contained in:
parent
c68e038912
commit
c78356e9cf
@ -680,7 +680,7 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
|
|||||||
socket.destroy();
|
socket.destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
self.emit('webSocketProxyError', req, socket, head);
|
self.emit('webSocketProxyError', err, req, socket, head);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user