From 1a5460c1dac22bbdf8f4e339c303711807e496f0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 24 Aug 2019 12:28:43 +0100 Subject: [PATCH] Opposite logic --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index a316de70..ea2ad0f6 100644 --- a/daemon.py +++ b/daemon.py @@ -146,7 +146,7 @@ class PubServer(BaseHTTPRequestHandler): """Should a http response be given? """ if self.headers['Accept'].startswith('*'): - return True + return False if 'json' in self.headers['Accept']: return False return True