mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
fix: 下载脚本的文件名异常
This commit is contained in:
parent
6ef26f864c
commit
00de8745b5
@ -105,7 +105,7 @@ async def generate_script_response(request):
|
||||
'Content-Disposition': f'''attachment; filename={
|
||||
config.read_config("common.download_config.filename")
|
||||
if config.read_config("common.download_config.filename").endswith(".js")
|
||||
else (config.read_config("common.download_config.filename" + ".js"))}'''
|
||||
else (config.read_config("common.download_config.filename") + ".js")}'''
|
||||
})
|
||||
|
||||
if (config.read_config('common.allow_download_script')):
|
||||
|
Loading…
x
Reference in New Issue
Block a user