Author loewis
Recipients loewis, pitrou
Date 2009-12-30.22:03:05
SpamBayes Score 0.00141086
Marked as misclassified No
Message-id <4B3BCE18.9060902@v.loewis.de>
In-reply-to <1262209596.84.0.138157640556.issue7606@psf.upfronthosting.co.za>
Content
>     self.send_header("X-traceback", traceback.format_exc())

That's fairly tricky. send_header expects two strings (bytes are
not acceptable), and also requires these strings to be ASCII.
This is why it breaks: format_exc returns a non-ASCII string.

I see two options:
a) allow non-Unicode values for keyword and value in send_header,
   and have xmlrpc.server encode the header itself, or
b) properly MIME-encode value if it contains non-ASCII characters
   (keyword really must be ASCII, I think).

Not sure whether there is any precedence for UTF-8 in HTTP
headers.
History
Date User Action Args
2009-12-30 22:03:07loewissetrecipients: + loewis, pitrou
2009-12-30 22:03:05loewislinkissue7606 messages
2009-12-30 22:03:05loewiscreate