diff --git a/httpserver-error.lua b/httpserver-error.lua index 936482c..f7139cc 100644 --- a/httpserver-error.lua +++ b/httpserver-error.lua @@ -3,6 +3,7 @@ -- Author: Marcos Kirsch, Gregor Hartmann return function (connection, req, args) + req.code = args.code local statusString = dofile("httpserver-header.lc")(connection, req.code, "html", false, req.headers) connection:send("" .. req.code .. " - " .. statusString .. "

" .. req.code .. " - " .. statusString .. "

\r\n") end