From 31774c8b2c9059e93e139af178840512820245d2 Mon Sep 17 00:00:00 2001 From: klemek Date: Mon, 13 Apr 2026 00:55:28 +0200 Subject: [PATCH] fix: certbot path --- src/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler.py b/src/handler.py index 94d07d0..28ec81e 100644 --- a/src/handler.py +++ b/src/handler.py @@ -114,7 +114,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler): @typing.override def translate_path(self, path: str) -> str: if path.startswith(self.CERTBOT_CHALLENGE_PATH): - return self.certbot_www + path.removeprefix(self.CERTBOT_CHALLENGE_PATH) + return self.certbot_www + path if (page := self.registry.get_from_host(self.__get_host())) is not None: path = f"/{page.path}" + path elif (