use proper message encoding
This commit is contained in:
parent
a9ef2eaaf4
commit
ca6a9bad4f
3 changed files with 43 additions and 25 deletions
|
|
@ -26,12 +26,6 @@ class Message(object):
|
|||
self.visible_at = 0
|
||||
self.delayed_until = 0
|
||||
|
||||
@property
|
||||
def body_base64(self):
|
||||
if len(self.body) >= 27:
|
||||
return base64.b64encode(self.body)
|
||||
return self.body
|
||||
|
||||
@property
|
||||
def md5(self):
|
||||
body_md5 = hashlib.md5()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue