fix: favicon not served from page
Python Lint CI / ty (push) Successful in 53s
Python Lint CI / ruff (push) Successful in 53s
Python Lint CI / ruff-format-check (push) Successful in 53s
Docker CI / docker-build (push) Has been cancelled
Python Test CI / coverage (push) Has been cancelled

This commit is contained in:
2026-06-25 14:29:09 +02:00
parent 225b13a7e3
commit 011e3840c6
+1 -1
View File
@@ -596,7 +596,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler, BaseHandler):
return ""
if self.host != self.default_host:
if (
not (self.root_path / page.path / path).is_file()
not (self.root_path / page.path / pathlib.Path(path[1:])).is_file()
and path in self.AUTHORIZED_PATHS
):
return super().translate_path(path)