changeset 351:a4bc537baa15

encode BEEP unicode headers since they need concatted with raw bytes read from the body
author mgood
date Tue, 23 May 2006 00:48:01 +0000
parents ef795ebeac00
children d1fdda2bf7d1
files bitten/util/beep.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/util/beep.py
+++ b/bitten/util/beep.py
@@ -801,6 +801,8 @@
                             self.content_encoding)
             hdrs.append('')
             self._hdr_buf = '\r\n'.join(hdrs) + '\r\n'
+            if isinstance(self._hdr_buf, unicode):
+                self._hdr_buf = self._hdr_buf.encode('utf8')
 
         ret_buf = ''
         if len(self._hdr_buf):
Copyright (C) 2012-2017 Edgewall Software