Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

11 lines
314 B
Lua

-- reflect the request information as JSON
json = require "json"
response = json.encode(mg.request_info)
mg.response.status = 200
mg.response.http_headers["Content-Type"] = "application/json; charset=utf-8";
mg.response.http_headers["Content-Length"] = #response;
mg.response.send()
mg.write(response)