We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b96cd7 commit 30edc25Copy full SHA for 30edc25
lib/http-proxy/passes/web-incoming.js
@@ -143,8 +143,8 @@ module.exports = {
143
}
144
145
// Ensure we abort proxy if request is aborted
146
- req.on('aborted', function () {
147
- proxyReq.abort();
+ res.on('close', function () {
+ proxyReq.destroy();
148
});
149
150
// handle errors in proxy and incoming request, just like for forward proxy
0 commit comments