[object Object]

← back to Ticket Action Viewer

5x sweep 1: serve 204 for /favicon.ico (kills the favicon-404 console error)

bbbe42d78b81d047c0004619097196f40308dda0 · 2026-08-10 08:01:13 -0700 · Steve Abrams

Files touched

Diff

commit bbbe42d78b81d047c0004619097196f40308dda0
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 10 08:01:13 2026 -0700

    5x sweep 1: serve 204 for /favicon.ico (kills the favicon-404 console error)
---
 server.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server.js b/server.js
index ad2b2d6..d5b083d 100644
--- a/server.js
+++ b/server.js
@@ -64,6 +64,7 @@ const server = http.createServer(async (req, res) => {
   if (!auth(req)) { res.writeHead(401, { 'WWW-Authenticate': 'Basic realm="tickets"' }); return res.end('auth'); }
   const u = new URL(req.url, `http://x`);
 
+  if (u.pathname === '/favicon.ico') { res.writeHead(204); return res.end(); }
   if (u.pathname === '/' ) {
     res.writeHead(200, { 'Content-Type': 'text/html' });
     return res.end(fs.readFileSync(path.join(__dirname, 'public', 'index.html')));

← c465d6a viewer: RUN NOW reserves+timestamps the ticket at click, the  ·  back to Ticket Action Viewer  ·  5x: report — 2 consecutive clean sweeps (fixed favicon-404 c e52db3d →