mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #12938 from overleaf/jpa-leaks-filestore
[filestore] cacheWarm: destroy file stream when not piping into response GitOrigin-RevId: a0fb14e5ececd28d8d9dbed8cd3a5622c81b8230
This commit is contained in:
@@ -67,6 +67,7 @@ function getFile(req, res, next) {
|
||||
}
|
||||
|
||||
if (req.query.cacheWarm) {
|
||||
fileStream.destroy()
|
||||
return res.sendStatus(200).end()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user