summaryrefslogtreecommitdiffstats
path: root/src/civetweb/test/exit.lua
blob: 40356e317c9427a1f9e400e0e79007c4e49dd7c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
msg=[[<html><body>
<p>Exit CivetWeb</p>
</body></html>
]]

mg.write("HTTP/1.0 200 OK\r\n")
mg.write("Connection: close\r\n")
mg.write("Content-Length: " .. #msg .. "\r\n")
mg.write("Content-Type: text/html\r\n")
mg.write("\r\n")
mg.write(msg)

os.exit(0)