From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/civetweb/test/exit.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/civetweb/test/exit.lua (limited to 'src/civetweb/test/exit.lua') diff --git a/src/civetweb/test/exit.lua b/src/civetweb/test/exit.lua new file mode 100644 index 00000000..40356e31 --- /dev/null +++ b/src/civetweb/test/exit.lua @@ -0,0 +1,15 @@ + +msg=[[ +

Exit CivetWeb

+ +]] + +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) + -- cgit v1.2.3