fix zip utils

This commit is contained in:
undefined committed 2025-04-14 19:22:11 +08:00
1 parent 302d03fe08
commit 50d0536a3b
3 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -112,7 +112,7 @@ export default (logger, xff, xhost) => async (ctx: KoaContext, next: Next) => {
ctx.response.status = 302;
ctx.redirect(response.redirect);
} else if (response.body) {
ctx.body = response.body;
ctx.body = response.body instanceof Blob ? Buffer.from(await response.body.arrayBuffer()) : response.body;
ctx.response.status = response.status || 200;
ctx.response.type = response.type
|| (request.json