main2
Bob Mottram 2019-11-09 20:03:19 +00:00
parent 1bc8914973
commit 0969ccc29c
1 changed files with 1 additions and 2 deletions

View File

@ -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