Kundenansicht neu P10: Weiche meldet abgebrochene Verbindungen nicht als Fehler

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-29 12:27:33 +00:00
1 parent 434996e9eb
commit 756f7e6153
1 file changed
+2 -1
+2 -1
View File
@@ -59,7 +59,8 @@ export function umschaltSeitenRouter({ publicDir, modus = neueAnsichtModus, fass
if (!info.isFile()) return next() if (!info.isFile()) return next()
res.set('Cache-Control', 'no-cache') res.set('Cache-Control', 'no-cache')
res.sendFile(ziel, { dotfiles: 'deny' }, (err) => { res.sendFile(ziel, { dotfiles: 'deny' }, (err) => {
if (!err) return // Abgebrochene Verbindung (am Handy haeufig): kein Fehler fuers Log, das die Checkliste auf "Unbehandelter Fehler" zaehlt
if (!err || err.code === 'ECONNABORTED') return
if (res.headersSent) return if (res.headersSent) return
res.removeHeader('Cache-Control') res.removeHeader('Cache-Control')
next(err.code === 'ENOENT' ? undefined : err) next(err.code === 'ENOENT' ? undefined : err)