Software /
code /
prosody
Diff
net/http/server.lua @ 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 |
parent | 4631:fc5d3b053454 |
child | 4634:8e582afc214d |
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