From a17a0d40ca2d2fbde9b8ac617b6661abedd65de8 Mon Sep 17 00:00:00 2001 From: Gregor Hartmann Date: Sun, 2 Jul 2017 17:54:30 +0200 Subject: [PATCH] fix #96 Basic HTTP Authentication (#98) --- httpserver-error.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("" .. args.code .. " - " .. statusString .. "

" .. args.code .. " - " .. statusString .. "

\r\n") end