mirror of https://gitlab.com/bashrc2/epicyon
http header check
parent
d784ffcd16
commit
92580b8e33
|
@ -152,7 +152,7 @@ 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('*'):
|
if '*/*' in self.headers['Accept']:
|
||||||
return False
|
return False
|
||||||
if 'json' in self.headers['Accept']:
|
if 'json' in self.headers['Accept']:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue