diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-06-28 14:17:07 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-06-28 14:17:07 +0100 |
commit | 0e37b231f247e5a7a0f0fb19b7f4239a3a1b3b68 (patch) | |
tree | 7c2d34ae4bd43fbd5d33ce355575a4db1239c33e /net | |
parent | fc9b65727f9c551518e6b2c9844f45a36b2bcabc (diff) | |
download | prosody-0e37b231f247e5a7a0f0fb19b7f4239a3a1b3b68.tar.gz prosody-0e37b231f247e5a7a0f0fb19b7f4239a3a1b3b68.zip |
net.httpserver: Don't upset logger when response is nil
Diffstat (limited to 'net')
-rw-r--r-- | net/httpserver.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua index af23a91d..8ce25f35 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -52,7 +52,7 @@ local function send_response(request, response) end else -- Response we have is just a string (the body) - log("debug", "Sending response to %s: %s", request.id, response); + log("debug", "Sending response to %s: %s", request.id or "<none>", response or "<none>"); resp = { "HTTP/1.0 200 OK\r\n" }; t_insert(resp, "Connection: close\r\n"); |