Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
backport http-party#1542
Browse files Browse the repository at this point in the history
  • Loading branch information
roderik committed Nov 25, 2021
1 parent 9b96cd7 commit ecd771e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/passes/web-incoming.js
Expand Up @@ -154,7 +154,7 @@ module.exports = {

function createErrorHandler(proxyReq, url) {
return function proxyError(err) {
if (req.socket.destroyed && err.code === 'ECONNRESET') {
if (req.aborted && err.code === 'ECONNRESET') {
server.emit('econnreset', err, req, res, url);
return proxyReq.abort();
}
Expand Down

0 comments on commit ecd771e

Please sign in to comment.