diff --git a/lua_modules/http/httpserver.lua b/lua_modules/http/httpserver.lua index ba269603..f2e0c48c 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(conn) - conn.on("sent", nil) + conn:on("sent", nil) collectgarbage("collect") end -- header parser