[Python-checkins] CVS: python/dist/src/Lib BaseHTTPServer.py,1.17,1.17.16.1

Michael Hudson mwh@users.sourceforge.net
Fri, 08 Mar 2002 05:41:11 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv25646

Modified Files:
      Tag: release22-maint
	BaseHTTPServer.py 
Log Message:
backport montanaro's checkin of
    revision 1.18 of BaseHTTPServer.py

add Content-Type header to error responses
this closes patch 502080


Index: BaseHTTPServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/BaseHTTPServer.py,v
retrieving revision 1.17
retrieving revision 1.17.16.1
diff -C2 -d -r1.17 -r1.17.16.1
*** BaseHTTPServer.py	25 Jul 2001 06:12:16 -0000	1.17
--- BaseHTTPServer.py	8 Mar 2002 13:41:09 -0000	1.17.16.1
***************
*** 288,291 ****
--- 288,292 ----
          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 %