git-svn-id: file:///home/svn/incoming/trunk@3095 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-11-25 04:16:43 +00:00
parent cd8b9849ce
commit bd70905c03
1 changed files with 3 additions and 1 deletions

View File

@ -218,12 +218,14 @@ class Server
def send_e404(cli, request)
resp = Response::E404.new
resp['Content-Type'] = 'text/html'
resp.body =
"<html><head>" +
"<title>404 Not Found</title>" +
"</head><body>" +
"<h1>Not found</h1>" +
"The requested URL #{request.resource} was not found on this server.<p><hr>" +
"The requested URL #{html_escape(request.resource)} was not found on this server.<p><hr>" +
"</body></html>"
# Send the response to the client like what