Fix filestore-readonly crash from ERR_STREAM_UNABLE_TO_PIPE

GitOrigin-RevId: 405ad3210132702fffecdc091066321bc1ccc10c
This commit is contained in:
Anna Claire Fields
2026-03-26 14:15:08 +01:00
committed by Copybot
parent 6113c6c291
commit aa3715bd66

View File

@@ -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()