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:
commit
123d1e3965
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user