diff Lib/BaseHTTPServer.py @ 22182:f8a9db67fa5b 2.2

backport montanaro's checkin of revision 1.18 of BaseHTTPServer.py add Content-Type header to error responses this closes patch 502080
author Michael W. Hudson <mwh@python.net>
date Fri, 08 Mar 2002 13:41:09 +0000
parents b80ac8e31a80
children 27f36f4bf525
line wrap: on
line diff
--- a/Lib/BaseHTTPServer.py	Fri Mar 08 13:40:46 2002 +0000
+++ b/Lib/BaseHTTPServer.py	Fri Mar 08 13:41:09 2002 +0000
@@ -287,6 +287,7 @@
         explain = long
         self.log_error("code %d, message %s", code, message)
         self.send_response(code, message)
+        self.send_header("Content-Type", "text/html")
         self.end_headers()
         self.wfile.write(self.error_message_format %
                          {'code': code,