http header check

This commit is contained in:
bashrc committed 2019-08-27 17:24:15 +01:00
1 parent d784ffcd16
commit 92580b8e33
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@ class PubServer(BaseHTTPRequestHandler):
def _requestHTTP(self) -> bool:
"""Should a http response be given?
"""
if self.headers['Accept'].startswith('*'):
if '*/*' in self.headers['Accept']:
return False
if 'json' in self.headers['Accept']:
return False