[web] disable buffering when downloading large files (#31874)

* [web] disable buffering when downloading large files

* [web] fix unit tests

GitOrigin-RevId: c8b0381962814fa62425364f03457600daf287ef
This commit is contained in:
Jakob Ackermann
2026-03-06 09:10:32 +00:00
committed by Copybot
parent 89e8044a25
commit da50aee52c
5 changed files with 14 additions and 0 deletions
@@ -113,6 +113,7 @@ describe('ProjectDownloadsController', function () {
ctx.res.headers.should.deep.equal({
'Content-Disposition': `attachment; filename="project_name_with_accênts_and___special_characters.zip"`,
'Content-Type': 'application/zip',
'X-Accel-Buffering': 'no',
'X-Content-Type-Options': 'nosniff',
})
})
@@ -184,6 +185,7 @@ describe('ProjectDownloadsController', function () {
'Content-Disposition':
'attachment; filename="Overleaf Projects (2 items).zip"',
'Content-Type': 'application/zip',
'X-Accel-Buffering': 'no',
'X-Content-Type-Options': 'nosniff',
})
})