allow spaces in filenames

This commit is contained in:
bakatrouble 2023-05-24 18:15:03 +03:00
parent c145919877
commit 8263c0f78b

View File

@ -24,6 +24,7 @@ j2env = get_j2env(DEBUG)
@app.get(r'/<path:.*/?>')
async def index(request: Request, path=''):
path = path.replace('%20', ' ')
domain = request.host
query = f'?{request.query_string}' if request.query_string else ''