Compare commits
1 Commits
de3fd0c11f
...
200175a8b1
Author | SHA1 | Date | |
---|---|---|---|
200175a8b1 |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user