use correct code for erropage instead of failing
Sorry I didn't see this earlier
This commit is contained in:
parent
3b0e3d0aab
commit
addda8dbe7
@ -3,6 +3,7 @@
|
|||||||
-- Author: Marcos Kirsch, Gregor Hartmann
|
-- Author: Marcos Kirsch, Gregor Hartmann
|
||||||
|
|
||||||
return function (connection, req, args)
|
return function (connection, req, args)
|
||||||
|
req.code = args.code
|
||||||
local statusString = dofile("httpserver-header.lc")(connection, req.code, "html", false, req.headers)
|
local statusString = dofile("httpserver-header.lc")(connection, req.code, "html", false, req.headers)
|
||||||
connection:send("<html><head><title>" .. req.code .. " - " .. statusString .. "</title></head><body><h1>" .. req.code .. " - " .. statusString .. "</h1></body></html>\r\n")
|
connection:send("<html><head><title>" .. req.code .. " - " .. statusString .. "</title></head><body><h1>" .. req.code .. " - " .. statusString .. "</h1></body></html>\r\n")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user