Compare commits

..

1 Commits

Author SHA1 Message Date
de3fd0c11f Redirector asgi rewrite
Some checks failed
Test before pr merge / test-translation-lint (pull_request) Successful in 1m18s
Test before pr merge / test-lint (pull_request) Successful in 1m20s
Test before pr merge / test-before-merge (pull_request) Failing after 2m24s
2025-03-10 23:52:13 +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