Bring the payload back

main
Bob Mottram 2021-03-01 10:06:13 +00:00
parent f76c173f59
commit 6baef31a36
1 changed files with 1 additions and 1 deletions

View File

@ -986,7 +986,7 @@ def extractTextFieldsInPOST(postBytes, boundary, debug: bool,
"""
if not unitTestData:
msgBytes = email.parser.BytesParser().parsebytes(postBytes)
messageFields = msgBytes.decode('utf-8')
messageFields = msgBytes.get_payload(decode=True).decode('utf-8')
else:
messageFields = unitTestData