blob: b78d4ac9fb6e0cfe6dacd47fb37ed61720985a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
mg.write("HTTP/1.0 200 OK\r\n")
mg.write("Content-Type: text/html\r\n")
mg.write("\r\n")
mg.write([[<html><body>
<p>Lua error handler:</p>
<p>Status code: ]])
mg.write(tostring(mg.request_info.status))
mg.write([[</p>
</body></html>
]])
|