transfer-encoding: chunked for DB downloads, refs #749

This should get >32MB downloads working on Cloud Run.
This commit is contained in:
Simon Willison 2020-12-02 15:47:37 -08:00
commit 88ac538b41
2 changed files with 2 additions and 0 deletions

View file

@ -1028,6 +1028,7 @@ def test_database_download_for_immutable():
download_response.headers["content-disposition"]
== 'attachment; filename="fixtures.db"'
)
assert download_response.headers["transfer-encoding"] == "chunked"
def test_database_download_disallowed_for_mutable(app_client):