[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:
@@ -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',
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user