diff --git a/lib/node-http-proxy/http-proxy.js b/lib/node-http-proxy/http-proxy.js index 1348d35..e23d551 100644 --- a/lib/node-http-proxy/http-proxy.js +++ b/lib/node-http-proxy/http-proxy.js @@ -271,8 +271,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) { response.on('end', function () { ended = true; if (!errState) { - reverseProxy.removeListener('error', proxyError); - try { res.end() } catch (ex) { console.error("res.end error: %s", ex.message) }