Fix regression where "Request aborted" is logged using res.sendFile

closes #2571
This commit is contained in:
Douglas Christopher Wilson
2015-03-02 13:11:31 -05:00
parent 1e6d2654a2
commit 7e0afa8268
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
unreleased
==========
* Fix regression where `"Request aborted"` is logged using `res.sendFile`
4.12.1 / 2015-03-01
===================

View File

@@ -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);
}
});