forked from indymedia/epicyon
Check for image
parent
92580b8e33
commit
2b07d685e3
|
@ -152,7 +152,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
def _requestHTTP(self) -> bool:
|
||||
"""Should a http response be given?
|
||||
"""
|
||||
if '*/*' in self.headers['Accept']:
|
||||
if 'image/' in self.headers['Accept']:
|
||||
return False
|
||||
if self.headers['Accept'].startswith('*'):
|
||||
return False
|
||||
if 'json' in self.headers['Accept']:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue