Software /
code /
prosody
Diff
net/httpserver.lua @ 1435:7a073b0a8f6a
net.httpserver: Don't upset logger when response is nil
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 28 Jun 2009 14:17:07 +0100 |
parent | 1119:61a011ebe243 |
child | 1522:569d58d21612 |
line wrap: on
line diff
--- a/net/httpserver.lua Sun Jun 28 02:46:36 2009 +0100 +++ b/net/httpserver.lua Sun Jun 28 14:17:07 2009 +0100 @@ -52,7 +52,7 @@ 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");