mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
transfer-encoding: chunked for DB downloads, refs #749
This should get >32MB downloads working on Cloud Run.
This commit is contained in:
parent
a970276b99
commit
88ac538b41
2 changed files with 2 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ class DatabaseDownload(DataView):
|
|||
headers = {}
|
||||
if self.ds.cors:
|
||||
headers["Access-Control-Allow-Origin"] = "*"
|
||||
headers["Transfer-Encoding"] = "chunked"
|
||||
return AsgiFileDownload(
|
||||
filepath,
|
||||
filename=os.path.basename(filepath),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue