mirror of https://gitlab.com/bashrc2/epicyon
Don't try to authorize avatars or icons
parent
63d5d8ee5a
commit
6f3f5d4edc
|
@ -915,6 +915,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return 2
|
return 2
|
||||||
|
|
||||||
def _isAuthorized(self) -> bool:
|
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
|
# token based authenticated used by the web interface
|
||||||
if self.headers.get('Cookie'):
|
if self.headers.get('Cookie'):
|
||||||
if self.headers['Cookie'].startswith('epicyon='):
|
if self.headers['Cookie'].startswith('epicyon='):
|
||||||
|
|
Loading…
Reference in New Issue