core: add libzip

This commit is contained in:
undefined committed 2024-08-03 01:26:16 +08:00
1 parent f266542dec
commit b3f25c22ae
4 files changed
+16 -6

No files matched your search

+4
View File
@@ -384,6 +384,10 @@ ${c.response.status} ${endTime - startTime}ms ${c.response.length}`);
this.ctx.on('dispose', () => {
fs.emptyDirSync(uploadDir);
});
// if killed by ctrl-c, on('dispose') will not be called
process.on('exit', () => {
fs.emptyDirSync(uploadDir);
});
} else {
this.server.use(Body({
multipart: true,