Browse Source

[YQTemplate] fix typo

main
Annwan 4 months ago
parent
commit
5ce37ad704
  1. 2
      yqtemplate.lua

2
yqtemplate.lua

@ -26,7 +26,7 @@ return {
run = function(fcgi) run = function(fcgi)
fcgi.print("Content-Type: text/html; charset=utf-8\r\n\r\n") fcgi.print("Content-Type: text/html; charset=utf-8\r\n\r\n")
local data = nil local data = nil
if fcgi.getenv("REQUEST_METHOD") == "POST"
if fcgi.getenv("REQUEST_METHOD") == "POST" then
data = fcgi.post() data = fcgi.post()
end end
form({data = data}) form({data = data})

Loading…
Cancel
Save