escape
git-svn-id: file:///home/svn/incoming/trunk@3095 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
cd8b9849ce
commit
bd70905c03
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue