~lastrosade/getcraft

0d10f5f4e7893c9b04176c4faa9c49e4fa871b98 — jeremy.shields 5 years ago 547432e
wtf
1 files changed, 0 insertions(+), 11 deletions(-)

D index.lua
D index.lua => index.lua +0 -11
@@ 1,11 0,0 @@
local http = require('http')

http.createServer(function (req, res)
	local body = "Hello world\n"
	res:setHeader("Content-Type", "text/plain")
	res:setHeader("Content-Length", #body)
	res:setHeader("Location", "nice")
	res:finish(body)
end):listen(1337, '127.0.0.1')

print('Server running at http://127.0.0.1:1337/')