Bugfix conn metatable method call (#3012)

Here `conn` is net.socket instance, so it should be called as one.
Otherwise request is very likely to end up with crash and PANIC.
This commit is contained in:
Edvinas 2020-02-23 19:46:35 +02:00 committed by GitHub
parent 71a182caa7
commit 3d91785018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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