[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2008-02-23 Thread ajaksu
ajaksu added the comment: Here's my attempted patch against trunk. The doc is poor (but what else should it contain?) and the attribute name could be better. I'm worried about lack of testing for this change as the module has virtually no tests. Should we start adding naive (regarding

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Reviewed and committed in r60980. Thanks! -- assignee: - georg.brandl nosy: +georg.brandl status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1492 __

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2008-01-12 Thread Georg Brandl
Changes by Georg Brandl: -- keywords: +easy __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1492 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2008-01-05 Thread vila
Changes by vila: -- nosy: +vila __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1492 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2008-01-05 Thread Guido van Rossum
Guido van Rossum added the comment: Something for the bug day on Jan 19? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1492 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2007-11-26 Thread Guido van Rossum
Guido van Rossum added the comment: I'm okay with adding this to 2.6 (and hence 3.0) but not with doing this to 2.5. -- nosy: +gvanrossum priority: - low resolution: - accepted versions: -Python 2.4, Python 2.5, Python 3.0 __ Tracker [EMAIL PROTECTED]

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2007-11-23 Thread samwyse
Changes by samwyse: -- components: +Library (Lib) type: - behavior versions: +Python 2.4, Python 2.5, Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1492 __

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2007-11-23 Thread samwyse
New submission from samwyse: The send_error method always sends a Content-Type of 'text/html'. Other content types are both possible and desirable. For example, someone writing a REST server might wish to send XML error messages. Following the example of DEFAULT_ERROR_MESSAGE, I propose