From 9f9193ec375ed0f366b4aabfe210e7fdc3eb6b7d Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Thu, 17 Mar 2011 17:01:45 +0800 Subject: Error message in http.server code. Missed to update in 3.1 branch initially. --- Lib/http/server.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Lib/http/server.py b/Lib/http/server.py index 8de604a..0cd8d35 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" -- cgit v0.12