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
|
|
@ -92,7 +92,7 @@ def test_table_csv_download(app_client):
|
|||
assert response.status == 200
|
||||
assert "text/csv; charset=utf-8" == response.headers["content-type"]
|
||||
expected_disposition = 'attachment; filename="simple_primary_key.csv"'
|
||||
assert expected_disposition == response.headers["Content-Disposition"]
|
||||
assert expected_disposition == response.headers["content-disposition"]
|
||||
|
||||
|
||||
def test_csv_with_non_ascii_characters(app_client):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue