mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01: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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (res.destroyed) {
|
||||||
|
fileStream.destroy()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (req.query.cacheWarm) {
|
if (req.query.cacheWarm) {
|
||||||
fileStream.destroy()
|
fileStream.destroy()
|
||||||
return res.sendStatus(200).end()
|
return res.sendStatus(200).end()
|
||||||
|
|||||||
Reference in New Issue
Block a user