# HG changeset patch # User Matthew Wild # Date 1246195027 -3600 # Node ID 7a073b0a8f6af53166e6ab4fa3b0964dded377e6 # Parent e7bd00e709732befba2541c583e157396dbe6330 net.httpserver: Don't upset logger when response is nil diff -r e7bd00e70973 -r 7a073b0a8f6a net/httpserver.lua --- 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 "", response or ""); resp = { "HTTP/1.0 200 OK\r\n" }; t_insert(resp, "Connection: close\r\n");