diff Doc/library/basehttpserver.rst @ 45449:734fc0a19657 legacy-trunk

#1492: allow overriding BaseHTTPServer's content type for error messages.
author Georg Brandl <georg@python.org>
date Sat, 23 Feb 2008 15:02:28 +0000
parents 9e1529bf0442
children 66c8bd1bedf3
line wrap: on
line diff
--- a/Doc/library/basehttpserver.rst	Sat Feb 23 15:01:05 2008 +0000
+++ b/Doc/library/basehttpserver.rst	Sat Feb 23 15:02:28 2008 +0000
@@ -122,6 +122,15 @@
    class variable.
 
 
+.. attribute:: BaseHTTPRequestHandler.error_content_type
+
+   Specifies the Content-Type HTTP header of error responses sent to the client.
+   The default value is ``'text/html'``.
+
+   .. versionadded:: 2.6
+      Previously, the content type was always ``'text/html'``.
+
+
 .. attribute:: BaseHTTPRequestHandler.protocol_version
 
    This specifies the HTTP protocol version used in responses.  If set to