Changeset

4633:92e1a538f8b0

net.http.server: Missing <title/> in 404 Not Found response.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 21 Apr 2012 17:37:00 +0500
parents 4632:52b6901cabb0
children 4634:8e582afc214d
files net/http/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/http/server.lua	Fri Apr 13 00:39:00 2012 +0200
+++ b/net/http/server.lua	Sat Apr 21 17:37:00 2012 +0500
@@ -203,7 +203,7 @@
 		log("debug", "No handler found");
 		response.status_code = 404;
 		response.headers.content_type = "text/html";
-		response:send("<html><head>404 Not Found</head><body>404 Not Found: No such page.</body></html>");
+		response:send("<html><head><title>404 Not Found</title></head><body>404 Not Found: No such page.</body></html>");
 	end
 end