Minimum changes to print formatting

This commit is contained in:
Marcos Kirsch 2015-04-18 23:15:10 -05:00
parent 3125f997f7
commit 76c2895f04

View File

@ -14,8 +14,8 @@ local function sendHeader(connection, code, codeString, mimeType)
end
return function (connection, args)
errorString = getHTTPStatusString(args.code)
print("Error: " .. args.code .. ": " .. errorString)
local errorString = getHTTPStatusString(args.code)
print("Error " .. args.code .. ": " .. errorString)
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")
end