From 6baef31a36ee489a2f1f074821e9b76b28827b9e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 1 Mar 2021 10:06:13 +0000 Subject: [PATCH] Bring the payload back --- content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content.py b/content.py index 88ea8b9fa..bf22d7886 100644 --- a/content.py +++ b/content.py @@ -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