mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Fix filestore-readonly crash from ERR_STREAM_UNABLE_TO_PIPE
GitOrigin-RevId: 405ad3210132702fffecdc091066321bc1ccc10c
This commit is contained in:
committed by
Copybot
parent
6113c6c291
commit
aa3715bd66
@@ -62,6 +62,11 @@ function getFile(req, res, next) {
|
||||
return
|
||||
}
|
||||
|
||||
if (res.destroyed) {
|
||||
fileStream.destroy()
|
||||
return
|
||||
}
|
||||
|
||||
if (req.query.cacheWarm) {
|
||||
fileStream.destroy()
|
||||
return res.sendStatus(200).end()
|
||||
|
||||
Reference in New Issue
Block a user