Fix several file processings (#2968)

* Ignore image error in person

* Fix hang while processing empty file
This commit is contained in:
MeiMei
2018-10-21 18:35:36 +09:00
committed by syuilo
parent b8ed8336e0
commit 72754ede4e
2 changed files with 6 additions and 2 deletions

View File

@@ -185,6 +185,10 @@ export default async function(
// 種類が同定できなかったら application/octet-stream にする
res(['application/octet-stream', null]);
}
})
.on('end', () => {
// maybe 0 bytes
res(['application/octet-stream', null]);
});
});