aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-28 14:17:07 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-28 14:17:07 +0100
commit0e37b231f247e5a7a0f0fb19b7f4239a3a1b3b68 (patch)
tree7c2d34ae4bd43fbd5d33ce355575a4db1239c33e /net/httpserver.lua
parentfc9b65727f9c551518e6b2c9844f45a36b2bcabc (diff)
downloadprosody-0e37b231f247e5a7a0f0fb19b7f4239a3a1b3b68.tar.gz
prosody-0e37b231f247e5a7a0f0fb19b7f4239a3a1b3b68.zip
net.httpserver: Don't upset logger when response is nil
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r--net/httpserver.lua2
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");