Other media types

main
Bob Mottram 2019-12-03 21:47:28 +00:00
parent b585aebc3a
commit 7a506172b4
1 changed files with 4 additions and 0 deletions

View File

@ -279,6 +279,10 @@ class PubServer(BaseHTTPRequestHandler):
print('ACCEPT: '+self.headers['Accept'])
if 'image/' in self.headers['Accept']:
return False
if 'video/' in self.headers['Accept']:
return False
if 'audio/' in self.headers['Accept']:
return False
if self.headers['Accept'].startswith('*'):
return False
if 'json' in self.headers['Accept']: