forked from indymedia/epicyon
Accept header for images
parent
fe6e7f900b
commit
3d3486c266
|
@ -145,6 +145,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
def _requestHTTP(self) -> bool:
|
def _requestHTTP(self) -> bool:
|
||||||
"""Should a http response be given?
|
"""Should a http response be given?
|
||||||
"""
|
"""
|
||||||
|
if self.headers['Accept'].startswith('*'):
|
||||||
|
return True
|
||||||
if 'json' in self.headers['Accept']:
|
if 'json' in self.headers['Accept']:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue