Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
2672:215d448d69d0 | 2673:61ae351c19b5 |
---|---|
210 return req; | 210 return req; |
211 end | 211 end |
212 | 212 |
213 function destroy_request(request) | 213 function destroy_request(request) |
214 if request.conn then | 214 if request.conn then |
215 request.handler.close() | 215 request.conn = nil; |
216 listener.ondisconnect(request.conn, "closed"); | 216 request.handler:close() |
217 listener.ondisconnect(request.handler, "closed"); | |
217 end | 218 end |
218 end | 219 end |
219 | 220 |
220 _M.urlencode = urlencode; | 221 _M.urlencode = urlencode; |
221 | 222 |