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