mirror of
https://github.com/zebrajr/express.git
synced 2026-01-15 12:15:27 +00:00
Fix regression where "Request aborted" is logged using res.sendFile
closes #2571
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
unreleased
|
||||
==========
|
||||
|
||||
* Fix regression where `"Request aborted"` is logged using `res.sendFile`
|
||||
|
||||
4.12.1 / 2015-03-01
|
||||
===================
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user