Software /
code /
prosody
Diff
net/http.lua @ 739:1def06cd9311
Port to new server.lua, quite some changes, but I believe everything to be working
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 17 Jan 2009 04:45:08 +0000 |
parent | 738:cf70342985df |
child | 903:6737d005a84a |
line wrap: on
line diff
--- a/net/http.lua Fri Jan 16 23:34:45 2009 +0000 +++ b/net/http.lua Sat Jan 17 04:45:08 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);