From d941c1ba7f3f37bd7f9ec10c617f5375b8b82252 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Nov 2019 20:24:03 +0000 Subject: [PATCH] Debug --- daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index b8a977561..e0126004f 100644 --- a/daemon.py +++ b/daemon.py @@ -2653,8 +2653,11 @@ class PubServer(BaseHTTPRequestHandler): # why don't we just use msg.is_multipart(), rather than splitting? # TL;DR it doesn't work for this use case because we're not using # email style encoding message/rfc822 + print('messageFields1: '+str(msg.get_payload(decode=False))) + print('messageFields2: '+str(msg.get_payload(decode=True))) messageFields=msg.get_payload(decode=True).decode('utf-8').split(boundary) - print('messageFields: '+str(messageFields)) + print('messageFields3') + print('messageFields4: '+str(messageFields)) fields={} filename=None attachmentMediaType=None