From cff042fcb0a19813db7fed4bced081f511c279ed Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 Jan 2021 18:40:13 +0000 Subject: [PATCH] Debug for image requests --- daemon.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon.py b/daemon.py index 96e954a25..93daa43c2 100644 --- a/daemon.py +++ b/daemon.py @@ -9932,6 +9932,12 @@ class PubServer(BaseHTTPRequestHandler): print('@ detected: html ' + str(htmlGET)) print('@ detected: path ' + self.path) + # if an image is received + if not htmlGET: + if self.headers.get('Accept'): + if 'image/' in self.headers['Accept']: + print('image GET header: ' + str(self.headers).replace('\n', ', ')) + # get css # Note that this comes before the busy flag to avoid conflicts if self.path.endswith('.css'):