http header check

master
Bob Mottram 2019-08-27 17:24:15 +01:00
parent d784ffcd16
commit 92580b8e33
1 changed files with 1 additions and 1 deletions

View File

@ -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