Hello world/Web server: Difference between revisions

m
Fixed capitalization
m (Fixed capitalization)
Line 1,137:
{{libheader|LuaSocket}}
<lang lua>local socket = require "socket"
local headers = "HTTP/1.1 200 OK\r\nCOntentnContent-Type: text/html; charset=UTF-8\r\nContent-Length: %d\r\n\r\n%s"
local content = "<!doctype html><html><title>Goodbye, World!</title><h1>Goodbye, World!"
local server = assert(socket.bind("localhost", 8080))
6

edits