Compare commits

..

1 Commits

Author SHA1 Message Date
200175a8b1 Redirector asgi rewrite
Some checks failed
Test before pr merge / test-translation-lint (pull_request) Successful in 37s
Test before pr merge / test-lint (pull_request) Successful in 43s
Test before pr merge / test-before-merge (pull_request) Failing after 2m4s
2025-03-10 23:53:34 +01:00

View File

@ -42,8 +42,8 @@ async def handle_request(request: Request):
domain_strict_mode = Environment.get("DOMAIN_STRICT_MODE", bool, False)
if domain is not None and (
domain["name"] not in domains
or (domain_strict_mode and not host.endswith(domain["name"]))
domain["name"] not in domains
or (domain_strict_mode and not host.endswith(domain["name"]))
):
return templates.TemplateResponse(
"404.html", {"request": request}, status_code=404