allow spaces in filenames
This commit is contained in:
parent
c145919877
commit
8263c0f78b
@ -24,6 +24,7 @@ j2env = get_j2env(DEBUG)
|
|||||||
|
|
||||||
@app.get(r'/<path:.*/?>')
|
@app.get(r'/<path:.*/?>')
|
||||||
async def index(request: Request, path=''):
|
async def index(request: Request, path=''):
|
||||||
|
path = path.replace('%20', ' ')
|
||||||
domain = request.host
|
domain = request.host
|
||||||
query = f'?{request.query_string}' if request.query_string else ''
|
query = f'?{request.query_string}' if request.query_string else ''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user