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 }