From 6f3f5d4edc41b8d3929229460c45f3c91ea1faf6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 26 Nov 2019 17:57:05 +0000 Subject: [PATCH] Don't try to authorize avatars or icons --- daemon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon.py b/daemon.py index 83002e60..508ed765 100644 --- a/daemon.py +++ b/daemon.py @@ -915,6 +915,11 @@ class PubServer(BaseHTTPRequestHandler): return 2 def _isAuthorized(self) -> bool: + if self.path.startswith('/icons/') or \ + self.path.startswith('/avatars/') or \ + self.path.startswith('/favicon.ico'): + return False + # token based authenticated used by the web interface if self.headers.get('Cookie'): if self.headers['Cookie'].startswith('epicyon='):