Show accept in debug

main
Bob Mottram 2019-11-26 14:32:09 +00:00
parent b8a4c94ecd
commit 356f29ab37
1 changed files with 2 additions and 0 deletions

View File

@ -272,6 +272,8 @@ class PubServer(BaseHTTPRequestHandler):
"""
if not self.headers.get('Accept'):
return False
if self.server.debug:
print('ACCEPT: '+self.headers['Accept'])
if 'image/' in self.headers['Accept']:
return False
if self.headers['Accept'].startswith('*'):