Optimize the naming of setting params (#410)

This commit is contained in:
Wu Clan
2024-09-09 11:50:22 +08:00
committed by GitHub
parent 9aa2d7b593
commit b13410c7d1
14 changed files with 96 additions and 97 deletions
+1 -1
View File
@@ -194,5 +194,5 @@ async def download_code(pk: Annotated[int, Path(..., description='业务ID')]):
return StreamingResponse(
bio,
media_type='application/x-zip-compressed',
headers={'Content-Disposition': f'attachment; filename={generator_settings.ZIP_FILENAME}.zip'},
headers={'Content-Disposition': f'attachment; filename={generator_settings.DOWNLOAD_ZIP_FILENAME}.zip'},
)