commit 48bb5fd6b1bf2a8e63e1dbd2b6f15b1945cf0402 Author: Isis Lovecruft isis@torproject.org Date: Sat Jul 19 03:33:05 2014 +0000
Fix an additional utf-8 encoding error for optional email headers. --- lib/bridgedb/email/autoresponder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/email/autoresponder.py b/lib/bridgedb/email/autoresponder.py index e7dcdf2..7e5f900 100644 --- a/lib/bridgedb/email/autoresponder.py +++ b/lib/bridgedb/email/autoresponder.py @@ -323,7 +323,8 @@ class EmailResponse(object): headerName = headerName.capitalize() headerName = headerName.replace(' ', '-') headerName = headerName.replace('_', '-') - self.write("%s: %s" % (headerName, headerValue)) + header = "%s: %s" % (headerName, headerValue) + self.write(header.encode('utf-8'))
# The first blank line designates that the headers have ended: self.write(self.delimiter)
tor-commits@lists.torproject.org