diff --git a/History.md b/History.md index cdf2bfd0..bab38b8d 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,8 @@ +unreleased +========== + + * Fix regression where `"Request aborted"` is logged using `res.sendFile` + 4.12.1 / 2015-03-01 =================== diff --git a/lib/response.js b/lib/response.js index a78d894c..b759eb95 100644 --- a/lib/response.js +++ b/lib/response.js @@ -404,7 +404,7 @@ res.sendFile = function sendFile(path, options, fn) { if (err && err.code === 'EISDIR') return next(); // next() all but write errors - if (err && err.code !== 'ECONNABORT' && err.syscall !== 'write') { + if (err && err.code !== 'ECONNABORTED' && err.syscall !== 'write') { next(err); } });