Bugfix conn metatable method call
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.
@@ -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
