Skip to content

Commit a17a0d4

Browse files
HHHartmannmarcoskirsch
authored andcommittedJul 2, 2017
fix marcoskirsch#96 Basic HTTP Authentication (marcoskirsch#98)
1 parent 2515222 commit a17a0d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎httpserver-error.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
-- Author: Marcos Kirsch, Gregor Hartmann
44

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

0 commit comments

Comments
 (0)
Please sign in to comment.