From 9b10383cb66983a0b1ea211aae8540305f6015c2 Mon Sep 17 00:00:00 2001 From: Gregor Date: Mon, 29 May 2017 21:04:39 +0200 Subject: [PATCH] Call to log had wrong parameters The parameter should be the connection itself. Log then calls getpeer on it --- httpserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpserver.lua b/httpserver.lua index 681b3af..4ed260b 100644 --- a/httpserver.lua +++ b/httpserver.lua @@ -117,7 +117,7 @@ return function (port) end if user and req.methodIsValid and (req.method == "GET" or req.method == "POST" or req.method == "PUT") then - handleRequest(connection, req) + handleRequest(connection, req, handleError) else local args = {} local fileServeFunction = dofile("httpserver-error.lc")