fix: handle case errors in configuration for api domain
This commit is contained in:
parent
b305914ac3
commit
3ddc5123d2
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ app.include_router(mirrors_router)
|
|||
|
||||
@app.get("/")
|
||||
def home(host: str = Header(settings.LINK_DOMAIN)):
|
||||
if host.lower().strip() != settings.API_DOMAIN:
|
||||
if host.lower().strip() != settings.API_DOMAIN.lower():
|
||||
return RedirectResponse(
|
||||
settings.INVALID_URL,
|
||||
status_code=status.HTTP_302_FOUND,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue