fix: favicon not served from page
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user