From 92580b8e33df7c816169e503f7129754247c74da Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 27 Aug 2019 17:24:15 +0100 Subject: [PATCH] http header check --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index bed463e23..0b3dfe708 100644 --- a/daemon.py +++ b/daemon.py @@ -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