mirror of https://gitlab.com/bashrc2/epicyon
Other media types
parent
b585aebc3a
commit
7a506172b4
|
@ -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']:
|
||||
|
|
Loading…
Reference in New Issue