Software /
code /
prosody
Diff
net/http.lua @ 2673:61ae351c19b5
net.http: destroy_request(): Remove update for new server API, pass request.handler instead of request.conn to ondisconnect
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 19 Feb 2010 03:22:42 +0000 |
parent | 2672:215d448d69d0 |
child | 2675:ab643a77da2d |
line wrap: on
line diff
--- a/net/http.lua Fri Feb 19 03:21:50 2010 +0000 +++ b/net/http.lua Fri Feb 19 03:22:42 2010 +0000 @@ -212,8 +212,9 @@ function destroy_request(request) if request.conn then - request.handler.close() - listener.ondisconnect(request.conn, "closed"); + request.conn = nil; + request.handler:close() + listener.ondisconnect(request.handler, "closed"); end end