mirror of https://gitlab.com/bashrc2/epicyon
Check that accept exists
parent
0ba7f4e8b9
commit
c2cf3a0dc5
|
@ -153,6 +153,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 not self.headers.get('Accept'):
|
||||||
|
return False
|
||||||
if 'image/' in self.headers['Accept']:
|
if 'image/' in self.headers['Accept']:
|
||||||
return False
|
return False
|
||||||
if self.headers['Accept'].startswith('*'):
|
if self.headers['Accept'].startswith('*'):
|
||||||
|
|
Loading…
Reference in New Issue