From: Senthil Kumaran Date: Thu, 17 Mar 2011 08:43:22 +0000 (+0800) Subject: Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin. X-Git-Tag: v3.2.1b1~265 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b253c9f66de1226ad6b72d79af70563671fe4320;p=python Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin. --- diff --git a/Lib/http/server.py b/Lib/http/server.py index 543abe0c9f..c0245ecc06 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -103,15 +103,20 @@ import copy # Default error message template DEFAULT_ERROR_MESSAGE = """\ - -Error response - - -

Error response

-

Error code %(code)d. -

Message: %(message)s. -

Error code explanation: %(code)s = %(explain)s. - + + + + + Error response + + +

Error response

+

Error code: %(code)d

+

Message: %(message)s.

+

Error code explanation: %(code)s - %(explain)s.

+ + """ DEFAULT_ERROR_CONTENT_TYPE = "text/html;charset=utf-8"