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["Cache-Control"] = "private, max-age=31536000"
if download:
response.headers[
"Content-Disposition"
] = f"attachment; filename=snapshot-{id}-clean.png"
response.headers["Content-Disposition"] = (
f"attachment; filename=snapshot-{id}-clean.png"
)
return response