From 8263c0f78b25976b3ebdb43e20181f0df58758dc Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Wed, 24 May 2023 18:15:03 +0300 Subject: [PATCH] allow spaces in filenames --- autoindex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autoindex.py b/autoindex.py index 5d8f383..99bff9a 100644 --- a/autoindex.py +++ b/autoindex.py @@ -24,6 +24,7 @@ j2env = get_j2env(DEBUG) @app.get(r'/') async def index(request: Request, path=''): + path = path.replace('%20', ' ') domain = request.host query = f'?{request.query_string}' if request.query_string else ''