From: Senthil Kumaran Date: Thu, 17 Mar 2011 09:01:45 +0000 (+0800) Subject: Error message in http.server code. Missed to update in 3.1 branch initially. X-Git-Tag: v3.2.1b1~264^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f9193ec375ed0f366b4aabfe210e7fdc3eb6b7d;p=python Error message in http.server code. Missed to update in 3.1 branch initially. --- diff --git a/Lib/http/server.py b/Lib/http/server.py index 8de604a739..0cd8d35e4b 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"