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

Skip Montanaro montanaro@users.sourceforge.net
Thu, 07 Mar 2002 18:36:20 -0800


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

Modified Files:
	BaseHTTPServer.py 
Log Message:
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.18
diff -C2 -d -r1.17 -r1.18
*** BaseHTTPServer.py	25 Jul 2001 06:12:16 -0000	1.17
--- BaseHTTPServer.py	8 Mar 2002 02:36:18 -0000	1.18
***************
*** 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 %