net/httpserver.lua
changeset 1435 7a073b0a8f6a
parent 1119 61a011ebe243
child 1522 569d58d21612
--- 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");