From 0969ccc29cfed8c02526ab18667eb7b53662f981 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Nov 2019 20:03:19 +0000 Subject: [PATCH] Debug --- daemon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 960bcd17d..b8a977561 100644 --- a/daemon.py +++ b/daemon.py @@ -2653,9 +2653,8 @@ 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('msg.get_payload1: '+msg.get_payload(decode=False)) - print('msg.get_payload2: '+msg.get_payload(decode=True).decode('utf-8')) messageFields=msg.get_payload(decode=True).decode('utf-8').split(boundary) + print('messageFields: '+str(messageFields)) fields={} filename=None attachmentMediaType=None