|
@ -9,7 +9,14 @@ return { |
|
|
desc = "Creates Yokoka’s quest-style personal status page", |
|
|
desc = "Creates Yokoka’s quest-style personal status page", |
|
|
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 = fcgi.post() |
|
|
|
|
|
fcgi.print(form({data = data})) |
|
|
|
|
|
|
|
|
local data = "" |
|
|
|
|
|
if fcgi.getenv("REQUEST_METHOD") == "POST" then |
|
|
|
|
|
--- @type string |
|
|
|
|
|
local content_type = fcgi.getenv("CONTENT_TYPE") |
|
|
|
|
|
local boundary = content_type:match("; boundary=(.*)$") |
|
|
|
|
|
-- local post_data = fcgi.post() |
|
|
|
|
|
data = "Content type:" .. content_type .. "\n Boundary: "..boundary.."\n" |
|
|
|
|
|
end |
|
|
|
|
|
fcgi.print(form{data = data}) |
|
|
end |
|
|
end |
|
|
} |
|
|
} |