From 7a506172b456e8871a9ce66f479a03e4f36deedc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Dec 2019 21:47:28 +0000 Subject: [PATCH] Other media types --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index 67a33d58..df18234a 100644 --- a/daemon.py +++ b/daemon.py @@ -279,6 +279,10 @@ class PubServer(BaseHTTPRequestHandler): print('ACCEPT: '+self.headers['Accept']) if 'image/' in self.headers['Accept']: return False + if 'video/' in self.headers['Accept']: + return False + if 'audio/' in self.headers['Accept']: + return False if self.headers['Accept'].startswith('*'): return False if 'json' in self.headers['Accept']: