fix: avoid cache of list of files

This commit is contained in:
tdurieux
2024-07-22 16:20:02 +02:00
parent 27583e6a17
commit d8dd408a65
3 changed files with 6 additions and 3 deletions

View File

@@ -82,7 +82,10 @@ router.post(
.on("finish", () => {
archive.finalize();
});
archive.pipe(res);
archive.pipe(res).on("error", (error) => {
console.error(error);
res.end();
});
} catch (error) {
handleError(error, res);
}