Forráskód Böngészése

Call to log had wrong parameters

The parameter should be the connection itself. Log then calls getpeer on
it
Gregor 7 éve
szülő
commit
9b10383cb6
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      httpserver.lua

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