fixed api and stopping delay

This commit is contained in:
Marco Mooren
2026-05-27 12:55:08 +02:00
parent 7b8d78ddaf
commit 3def9e0aac
2 changed files with 3 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ router.get('/:id/proxy', requireUser, async (req, res) => {
// the fetch but without the AbortController rejection that escapes the
// async route in older Node/Electron versions.
const reader = upstream.body.getReader();
req.on('close', () => { reader.cancel().catch(() => {}); });
req.on('close', () => { reader.cancel().catch(() => { }); });
const pump = async () => {
try {
while (true) {
@@ -163,7 +163,7 @@ router.get('/:id/proxy', requireUser, async (req, res) => {
try { res.end(); } catch { }
}
};
pump().catch(() => {});
pump().catch(() => { });
});
function guessContentType(format) {