From e41dec3db6a696b36808d9380fd4e3fc30b3b165 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 19:17:43 +0100 Subject: [PATCH] Remove content type --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index a527bd13a..f79bb5bd7 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