mirror of https://gitlab.com/bashrc2/epicyon
Bring the payload back
parent
f76c173f59
commit
6baef31a36
|
@ -986,7 +986,7 @@ def extractTextFieldsInPOST(postBytes, boundary, debug: bool,
|
||||||
"""
|
"""
|
||||||
if not unitTestData:
|
if not unitTestData:
|
||||||
msgBytes = email.parser.BytesParser().parsebytes(postBytes)
|
msgBytes = email.parser.BytesParser().parsebytes(postBytes)
|
||||||
messageFields = msgBytes.decode('utf-8')
|
messageFields = msgBytes.get_payload(decode=True).decode('utf-8')
|
||||||
else:
|
else:
|
||||||
messageFields = unitTestData
|
messageFields = unitTestData
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue