This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author samwyse
Recipients samwyse
Date 2007-11-23.13:04:06
SpamBayes Score 0.15164283
Marked as misclassified No
Message-id <1195823047.2.0.185836867459.issue1492@psf.upfronthosting.co.za>
In-reply-to
Content
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 adding the following in
the appropriate places:

91a92,94
> # Default error content-type
> DEFAULT_ERROR_TYPE = 'text/html'
>
345c348
<         self.send_header("Content-Type", "text/html")
---
>         self.send_header("Content-Type", error_message_type)
351a355
>     error_message_type = DEFAULT_ERROR_TYPE
History
Date User Action Args
2007-11-23 13:04:07samwysesetspambayes_score: 0.151643 -> 0.15164283
recipients: + samwyse
2007-11-23 13:04:07samwysesetspambayes_score: 0.151643 -> 0.151643
messageid: <1195823047.2.0.185836867459.issue1492@psf.upfronthosting.co.za>
2007-11-23 13:04:07samwyselinkissue1492 messages
2007-11-23 13:04:06samwysecreate