mirror of
https://github.com/simonw/datasette.git
synced 2026-11-05 17:58:30 +01:00
Merge d84fd9cdf5 into c435a80030
This commit is contained in:
commit
063dd9e761
2 changed files with 1 additions and 2 deletions
|
|
@ -661,12 +661,12 @@ def test_database_download_for_immutable():
|
|||
content_length = download_response.headers["content-length"]
|
||||
assert content_length.isdigit()
|
||||
assert int(content_length) > 100
|
||||
assert "transfer-encoding" not in download_response.headers
|
||||
assert "content-disposition" in download_response.headers
|
||||
assert (
|
||||
download_response.headers["content-disposition"]
|
||||
== 'attachment; filename="fixtures.db"'
|
||||
)
|
||||
assert download_response.headers["transfer-encoding"] == "chunked"
|
||||
# ETag header should be present and match db.hash
|
||||
assert "etag" in download_response.headers
|
||||
etag = download_response.headers["etag"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue