Call to log had wrong parameters
The parameter should be the connection itself. Log then calls getpeer on it
This commit is contained in:
parent
90cb4e47aa
commit
9b10383cb6
@ -117,7 +117,7 @@ return function (port)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if user and req.methodIsValid and (req.method == "GET" or req.method == "POST" or req.method == "PUT") then
|
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
|
else
|
||||||
local args = {}
|
local args = {}
|
||||||
local fileServeFunction = dofile("httpserver-error.lc")
|
local fileServeFunction = dofile("httpserver-error.lc")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user