9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

miscellaneous fixes

This commit is contained in:
Anthony Donlon
2025-11-21 09:30:51 +08:00
parent 91b1513f04
commit f7491f0b51
4 changed files with 3 additions and 4 deletions

View File

@@ -40,7 +40,6 @@ def get_page_params(name: str) -> dict:
def index(name: str):
name = os.path.basename(name) # keep only the base name
lower_name = name.lower()
print(lower_name, name)
if name != lower_name:
return redirect(lower_name)
else: