mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 17:38:19 +08:00
core: add libzip
This commit is contained in:
4 files changed
+16
-6
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user