mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed content-disposition header on DB download, closes #909
This commit is contained in:
parent
c5c12a797f
commit
0748a65a22
4 changed files with 11 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue