Software /
code /
prosody
Changeset
1053:c04b40a0740b
net.httpserver: Fix traceback when sending response to a destroyed request
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 23 Apr 2009 21:04:56 +0100 |
parents | 1052:a3429542631d |
children | 1054:084d265b37cf 1059:aed462ef09d8 |
files | net/httpserver.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/httpserver.lua Thu Apr 23 21:04:07 2009 +0100 +++ b/net/httpserver.lua Thu Apr 23 21:04:56 2009 +0100 @@ -99,7 +99,7 @@ if response == true and not request.destroyed then -- Keep connection open, we will reply later log("warn", "Request %s left open, on_destroy is %s", request.id, tostring(request.on_destroy)); - else + elseif response ~= true then -- Assume response send_response(request, response); destroy_request(request);