Debug for image requests

This commit is contained in:
bashrc committed 2021-01-21 18:40:13 +00:00
1 parent bd66c4420f
commit cff042fcb0
1 file changed
+6
+6
View File
@@ -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'):