Minimum changes to print formatting
This commit is contained in:
parent
3125f997f7
commit
76c2895f04
@ -14,8 +14,8 @@ local function sendHeader(connection, code, codeString, mimeType)
|
|||||||
end
|
end
|
||||||
|
|
||||||
return function (connection, args)
|
return function (connection, args)
|
||||||
errorString = getHTTPStatusString(args.code)
|
local errorString = getHTTPStatusString(args.code)
|
||||||
print("Error: " .. args.code .. ": " .. errorString)
|
print("Error " .. args.code .. ": " .. errorString)
|
||||||
sendHeader(connection, args.code, errorString, "text/html")
|
sendHeader(connection, args.code, errorString, "text/html")
|
||||||
connection:send("<html><head><title>" .. args.code .. " - " .. errorString .. "</title></head><body><h1>" .. args.code .. " - " .. errorString .. "</h1></body></html>\r\n")
|
connection:send("<html><head><title>" .. args.code .. " - " .. errorString .. "</title></head><body><h1>" .. args.code .. " - " .. errorString .. "</h1></body></html>\r\n")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user