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.

nwf edited in light of bcb669a4a0
This commit is contained in:
Edvinas 2020-02-23 19:46:35 +02:00 committed by Marcel Stör
parent 446c058fa6
commit 56a86c2661
1 changed files with 1 additions and 1 deletions

View File

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