Fixed content-disposition header on DB download, closes #909

This commit is contained in:
Simon Willison 2020-07-29 14:34:22 -07:00
commit 0748a65a22
4 changed files with 11 additions and 4 deletions

View file

@ -337,7 +337,7 @@ class DataView(BaseView):
disposition = 'attachment; filename="{}.csv"'.format(
kwargs.get("table", database)
)
headers["Content-Disposition"] = disposition
headers["content-disposition"] = disposition
return AsgiStream(stream_fn, headers=headers, content_type=content_type)