feat: remove default favicon
Docker CI / docker-build (push) Has been cancelled
Python Lint CI / ruff-format-check (push) Has been cancelled
Python Lint CI / ty (push) Has been cancelled
Python Lint CI / ruff (push) Has been cancelled
Python Test CI / coverage (push) Has been cancelled

This commit is contained in:
2026-07-17 16:03:18 +02:00
parent 5b4cba44d0
commit 118daf1e8c
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class DataDir:
]
PATH_REGEX = re.compile(r"^[\w-]+$")
NEEDED_FILES: typing.ClassVar[list[str]] = ["favicon.ico", "robots.txt"]
NEEDED_FILES: typing.ClassVar[list[str]] = ["robots.txt"]
def __init__(self, root_path: str) -> None:
self.logger: logging.Logger = logging.getLogger(self.__class__.__name__)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

+1 -1
View File
@@ -294,7 +294,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler, BaseHandler):
UPDATE_PATH_REGEX = re.compile(r"^\/([\w-]+)\/?$")
GET_PATH_REGEX = re.compile(r"^\/([\w-]+)($|\/)")
HOST_PART_REGEX = re.compile(r"^([a-z0-9]|[a-z0-9][a-z0-9-]{,61}[a-z0-9])$")
AUTHORIZED_PATHS: typing.ClassVar[list[str]] = ["/favicon.ico", "/robots.txt"]
AUTHORIZED_PATHS: typing.ClassVar[list[str]] = ["/robots.txt"]
TOKEN_HEADER = "X-Token" # noqa: S105
HOST_HEADER = "X-Host"
HOST_ONLY_HEADER = "X-Host-Only"
+4 -4
View File
@@ -1227,12 +1227,12 @@ class TestRequestHandler(BaseHandlerTestCase):
with (
self.patch_call(
"http.server.SimpleHTTPRequestHandler.translate_path",
["/favicon.ico"],
["/robots.txt"],
),
self.seal_mocks(),
):
self.assertEqual(
handler.translate_path("/favicon.ico"),
handler.translate_path("/robots.txt"),
None,
)
@@ -1269,12 +1269,12 @@ class TestRequestHandler(BaseHandlerTestCase):
self.mock_call(self.registry.get_from_host, ["example.com"], Page("path")),
self.patch_call(
"http.server.SimpleHTTPRequestHandler.translate_path",
["/favicon.ico"],
["/robots.txt"],
),
self.seal_mocks(),
):
self.assertEqual(
handler.translate_path("/favicon.ico"),
handler.translate_path("/robots.txt"),
None,
)