From 7ee58b89fa20ed9396942d92b9cc3d8023deebb5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 18:37:46 +0100 Subject: [PATCH] Media type --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 57547bef8..a527bd13a 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