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