Merge pull request #431 from araines/master

Fixes #430: MD5 hashing should be done to the real body, not an escaped one
This commit is contained in:
Steve Pulec 2015-10-05 18:28:34 -04:00
commit 123d1e3965

View File

@ -34,7 +34,7 @@ class Message(object):
@property @property
def md5(self): def md5(self):
body_md5 = hashlib.md5() body_md5 = hashlib.md5()
body_md5.update(self.body.encode('utf-8')) body_md5.update(self._body.encode('utf-8'))
return body_md5.hexdigest() return body_md5.hexdigest()
@property @property