diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-23 21:06:08 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-23 21:06:08 +0100 |
commit | c2e552a434eda3c9616d51f055bb459bbf561816 (patch) | |
tree | e496fbacf117db46faaf70ffeba3091ce1431c8b /net | |
parent | a7d5181dfbb5f6b2979645ac802cd1a098282d31 (diff) | |
parent | d6b19a1b1b9b46e7c8fe7abe6c1aa234f3fd8096 (diff) | |
download | prosody-c2e552a434eda3c9616d51f055bb459bbf561816.tar.gz prosody-c2e552a434eda3c9616d51f055bb459bbf561816.zip |
Merge with 0.4 branch
Diffstat (limited to 'net')
-rw-r--r-- | net/httpserver.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua index 79cf33c2..0ecf84ea 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -30,7 +30,7 @@ local function send_response(request, response) -- Write status line local resp; if response.body then - log("debug", "Sending response to %s: %s", request.id, response.body); + log("debug", "Sending response to %s", request.id); resp = { "HTTP/1.0 ", response.status or "200 OK", "\r\n"}; local h = response.headers; if h then @@ -99,7 +99,7 @@ local function call_callback(request, err) 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); |