diff --git a/daemon.py b/daemon.py index a527bd13..f79bb5bd 100644 --- a/daemon.py +++ b/daemon.py @@ -1845,7 +1845,7 @@ class PubServer(BaseHTTPRequestHandler): if extension=='jpeg': extension='jpg' filename=filenameBase+'.'+extension - attachmentMediaType=searchStr.decode().split('/')[0] + attachmentMediaType=searchStr.decode().split('/')[0].replace('Content-Type: ','') break if filename and imageLocation>-1: # locate the beginning of the image, after any