aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-17 04:45:08 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-17 04:45:08 +0000
commitc0dbcb4389fa5470c9fc7f674fc7fa698b693c02 (patch)
tree989f31c69447cb405c148c4eb3bcb067652844f0 /net/http.lua
parent5da8d030772c430bafef92bab6fa3d43767695b2 (diff)
downloadprosody-c0dbcb4389fa5470c9fc7f674fc7fa698b693c02.tar.gz
prosody-c0dbcb4389fa5470c9fc7f674fc7fa698b693c02.zip
Port to new server.lua, quite some changes, but I believe everything to be working
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua
index 043c5890..1ecbf410 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -134,7 +134,7 @@ function request(u, ex, callback)
if ex.method then req.method = ex.method; end
end
- req.handler, req.conn = server.wraptcpclient(listener, socket.tcp(), req.host, req.port or 80, 0, "*a");
+ req.handler, req.conn = server.wrapclient(socket.tcp(), req.host, req.port or 80, listener, "*a");
req.write = req.handler.write;
req.conn:settimeout(0);
local ok, err = req.conn:connect(req.host, req.port or 80);