fix: ?get=zip was not working with curl
Massimo Melina committed
Oct 28, 2024 at 16:42 UTC
cd535b5bb8669a3ed0740e3ddcacdb47ce968ac5
1 file changed
+1
-2
src/serveGuiAndSharedFiles.ts
+1
-2
@@ -125,10 +125,9 @@ export const serveGuiAndSharedFiles: Koa.Middleware = async (ctx, next) => {
125
return serveFrontendFiles(ctx, next)
126
}
127
ctx.set({ server: `HFS ${VERSION} ${BUILD_TIMESTAMP}` })
128
- if (basicWeb(ctx, node)) return
128
return get === 'zip' ? zipStreamFromFolder(node, ctx)
129
: get === 'list' ? sendFolderList(node, ctx)
131
- : serveFrontendFiles(ctx, next)
130
+ : (basicWeb(ctx, node) || serveFrontendFiles(ctx, next))
131
}
132
133
async function sendFolderList(node: VfsNode, ctx: Koa.Context) {