From 6661ae23837bfff6e099e5f8e93ac74fd3ad215c Mon Sep 17 00:00:00 2001 From: Annwan Date: Tue, 13 Aug 2024 01:34:18 +0200 Subject: [PATCH] [YQTemplate] unconditionally dump request --- yqtemplate.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/yqtemplate.lua b/yqtemplate.lua index 0a390d8..37e8ff4 100644 --- a/yqtemplate.lua +++ b/yqtemplate.lua @@ -25,10 +25,7 @@ return { desc = "Creates Yokoka’s quest-style personal status page", run = function(fcgi) fcgi.print("Content-Type: text/html; charset=utf-8\r\n\r\n") - local data = nil - if fcgi.getenv("REQUEST_METHOD") == "POST" then - data = fcgi.post() - end + local data = fcgi.post() fcgi.print(form({data = data})) end }