mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-06 22:42:14 +08:00
fix: 下载脚本的文件名异常
This commit is contained in:
@ -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')):
|
||||
|
Reference in New Issue
Block a user