Correct file type for shredder export zip (Fixes #1781, Z#153584)

This commit is contained in:
Martin Gross
2020-09-23 13:41:47 +02:00
parent 59595c9db8
commit c7b2baf40f

View File

@@ -54,7 +54,7 @@ def export(event: Event, shredders: List[str]) -> None:
cf = CachedFile()
cf.date = now()
cf.filename = event.slug + '.zip'
cf.type = 'application/pdf'
cf.type = 'application/zip'
cf.expires = now() + timedelta(hours=1)
cf.save()
cf.file.save(cachedfile_name(cf, cf.filename), rawfile)