Opposite logic

master
Bob Mottram 2019-08-24 12:28:43 +01:00
parent 3d3486c266
commit 1a5460c1da
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class PubServer(BaseHTTPRequestHandler):
"""Should a http response be given? """Should a http response be given?
""" """
if self.headers['Accept'].startswith('*'): if self.headers['Accept'].startswith('*'):
return True return False
if 'json' in self.headers['Accept']: if 'json' in self.headers['Accept']:
return False return False
return True return True