Skip to content

Commit addda8d

Browse files
committed
use correct code for erropage instead of failing
Sorry I didn't see this earlier
1 parent 3b0e3d0 commit addda8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

httpserver-error.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
-- Author: Marcos Kirsch, Gregor Hartmann
44

55
return function (connection, req, args)
6+
req.code = args.code
67
local statusString = dofile("httpserver-header.lc")(connection, req.code, "html", false, req.headers)
78
connection:send("<html><head><title>" .. req.code .. " - " .. statusString .. "</title></head><body><h1>" .. req.code .. " - " .. statusString .. "</h1></body></html>\r\n")
89
end

0 commit comments

Comments
 (0)