Skip to content

Commit

Permalink
[breaking] Ensure that webSocketProxyError also receives the error …
Browse files Browse the repository at this point in the history
…to be consistent with `proxyError` events.
  • Loading branch information
indexzero committed Mar 9, 2013
1 parent c68e038 commit c78356e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node-http-proxy/http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//
Expand Down

0 comments on commit c78356e

Please sign in to comment.