We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d47d98 commit f8bff4cCopy full SHA for f8bff4c
lib/node-http-proxy.js
@@ -137,7 +137,7 @@ HttpProxy.prototype = {
137
};
138
139
// Add a listener for the connection timeout event
140
- reverse_proxy.connection.addListener('error', error);
+ reverse_proxy.addListener('error', error);
141
142
// Add a listener for the reverse_proxy response event
143
reverse_proxy.addListener('response', function (response) {
@@ -173,7 +173,7 @@ HttpProxy.prototype = {
173
// At the end of the client request, we are going to stop the proxied request
174
req.addListener('end', function () {
175
reverse_proxy.end();
176
- reverse_proxy.connection.removeListener('error', error);
+ reverse_proxy.removeListener('error', error);
177
});
178
179
self.unwatch(req);
0 commit comments