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")