Skip to content

Commit

Permalink
fix: 下载脚本的文件名异常
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Feb 7, 2024
1 parent 6ef26f8 commit 00de874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lx_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')):
Expand Down

0 comments on commit 00de874

Please sign in to comment.