From f53294bcdce1dff8799cb29405e49dd95a846791 Mon Sep 17 00:00:00 2001 From: Annwan Date: Sun, 11 Aug 2024 22:44:59 +0200 Subject: [PATCH] [Dispatch] Converted dispatch to HTML --- main.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/main.lua b/main.lua index 27107ae..297abbd 100755 --- a/main.lua +++ b/main.lua @@ -11,11 +11,21 @@ while fcgi.accept() do if appfn then appfn.run(fcgi) else - fcgi.print"Content-Type: text/plain; charset=utf-8\r\n\r\n" - fcgi.print("No such application application: `" .. app .. "'\n") - fcgi.print("Available applications:\n") + fcgi.print"Content-Type: text/html; charset=utf-8\r\n\r\n" + fcgi.print[[ + +Annwan's CGI scripts +]] + if app and app ~= "" then + fcgi.print("

No such application application: " .. app .. "\n") + end + fcgi.print("

Available applications:

+ +]] end end