mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #475 from srossross/fix/ws_err_event
FIX: ws error event
This commit is contained in:
commit
c01fd2c54e
@ -83,7 +83,7 @@ function stream(req, socket, options, head) {
|
|||||||
if (options.ee.listeners(ev + 'error').length == 0){
|
if (options.ee.listeners(ev + 'error').length == 0){
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
options.ee.emit(ev + 'error', err, req, res);
|
options.ee.emit(ev + 'error', err, req, socket, head);
|
||||||
});
|
});
|
||||||
|
|
||||||
proxyReq.on('upgrade', function(proxyRes, proxySocket, proxyHead) {
|
proxyReq.on('upgrade', function(proxyRes, proxySocket, proxyHead) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user