diff --git a/lua_modules/http/httpserver.lua b/lua_modules/http/httpserver.lua index bce4dfb8..7a5f07be 100644 --- a/lua_modules/http/httpserver.lua +++ b/lua_modules/http/httpserver.lua @@ -89,7 +89,7 @@ do local buf = "" local method, url local ondisconnect = function(connection) - connection.on("sent", nil) + connection:on("sent", nil) collectgarbage("collect") end -- header parser