Software /
code /
prosody
Diff
net/http.lua @ 754:01abf314fac0
Automated merge with http://waqas.ath.cx:8000/
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 29 Jan 2009 17:54:37 +0000 |
parent | 739:1def06cd9311 |
child | 903:6737d005a84a |
line wrap: on
line diff
--- a/net/http.lua Thu Jan 29 22:37:25 2009 +0500 +++ b/net/http.lua Thu Jan 29 17:54:37 2009 +0000 @@ -134,7 +134,7 @@ 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);