BIND 10 #1739: Wrong log for stats-httpd 404 response
BIND 10 Development
do-not-reply at isc.org
Fri Mar 2 02:42:04 UTC 2012
#1739: Wrong log for stats-httpd 404 response
-------------------------------------+-------------------------------------
Reporter: jreed | Owner:
Type: | Status: new
defect | Milestone: New Tasks
Priority: minor | Resolution:
Component: | Sensitive: 0
statistics | Sub-Project: Core
Keywords: | Estimated Difficulty: 0
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by naokikambe):
> Also the output doesn't have the <html>...</html> tags and maybe could
use a <!DOCTYPE definition?
This html message is actually printed by the Python library "http.server".
In Python 3.2.2 the html tags and the doctype definition seem to be added
to the message. The following is a part of Lib/http/server.py taken from
Python 3.2.2 source.
{{{#!python
# Default error message template
DEFAULT_ERROR_MESSAGE = """\
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code: %(code)d</p>
<p>Message: %(message)s.</p>
<p>Error code explanation: %(code)s - %(explain)s.</p>
</body>
</html>
"""
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/1739#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list