This commit is contained in:
alexyao2015 2024-03-17 15:25:04 -05:00
parent fad079fc49
commit d7f1e2f95c

View File

@ -977,9 +977,9 @@ def event_snapshot_clean(id):
response.headers["Content-Type"] = "image/png" response.headers["Content-Type"] = "image/png"
response.headers["Cache-Control"] = "private, max-age=31536000" response.headers["Cache-Control"] = "private, max-age=31536000"
if download: if download:
response.headers[ response.headers["Content-Disposition"] = (
"Content-Disposition" f"attachment; filename=snapshot-{id}-clean.png"
] = f"attachment; filename=snapshot-{id}-clean.png" )
return response return response