From 1eeeb59fc7f480f0e29ba468184470fa635d959f Mon Sep 17 00:00:00 2001 From: Overlord Date: Tue, 25 Nov 2025 19:46:02 +0100 Subject: [PATCH] works (now), lol --- app/src/main.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main.v b/app/src/main.v index cd97804..5d6c980 100644 --- a/app/src/main.v +++ b/app/src/main.v @@ -49,7 +49,7 @@ pub fn (app &App) root(mut ctx Context, path string) veb.Result { ctx.res.header.add(.content_type, 'application/octet-stream') ctx.res.header.add(.content_disposition, 'attachment; filename="${os.base(abs_path)}"') - return ctx.file(abs_path) + return ctx.text(content) } entries := util.Utility.list_files(abs_path, abs_root) or { return ctx.not_found() }