Software /
code /
prosody
Changeset
4378:5e1f4af11626
net.httpclient_listener: util.httpstream now always expects to be called with nil data, so call even when the socket closed cleanly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 03 Sep 2011 15:44:05 -0400 |
parents | 4377:705a8f14427b |
children | 4379:e4d88f4a780c |
files | net/httpclient_listener.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/httpclient_listener.lua Sat Sep 03 02:42:50 2011 +0500 +++ b/net/httpclient_listener.lua Sat Sep 03 15:44:05 2011 -0400 @@ -52,7 +52,7 @@ function httpclient.ondisconnect(conn, err) local request = requests[conn]; - if request and err ~= "closed" then + if request and request.conn then request:reader(nil); end requests[conn] = nil;