Don't try to authorize avatars or icons

main
Bob Mottram 2019-11-26 17:57:05 +00:00
parent 63d5d8ee5a
commit 6f3f5d4edc
1 changed files with 5 additions and 0 deletions

View File

@ -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='):