aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/http.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http.lua b/net/http.lua
index cda1496c..1e2854a4 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -222,13 +222,13 @@ local function request(self, u, ex, callback)
sslctx = ex and ex.sslctx or self.options and self.options.sslctx;
end
- local handler, ret = server.addclient(host, port_number, listener, "*a", sslctx)
- if not handler then
+ local conn, ret = server.addclient(host, port_number, listener, "*a", sslctx)
+ if not conn then
self.events.fire_event("request-connection-error", { http = self, request = req, url = u, err = ret });
callback(ret, 0, req);
return nil, ret;
end
- req.conn = handler
+ req.conn = conn
req.write = function (...) return req.conn:write(...); end
req.callback = function (content, code, response, request)