[object Object]

← back to Feature Harvest

feature-harvest: handle /favicon.ico (204) — silences console 404; verified via 3-method test suite

bd3f8ae6657d5ea557b51d131f953bc8656835c4 · 2026-06-26 09:06:56 -0700 · Steve

Files touched

Diff

commit bd3f8ae6657d5ea557b51d131f953bc8656835c4
Author: Steve <steve@designerwallcoverings.com>
Date:   Fri Jun 26 09:06:56 2026 -0700

    feature-harvest: handle /favicon.ico (204) — silences console 404; verified via 3-method test suite
---
 server.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server.js b/server.js
index a34b5b0..d7fb748 100644
--- a/server.js
+++ b/server.js
@@ -123,6 +123,9 @@ const server = http.createServer((req, res) => {
   }
   const u = new URL(req.url, 'http://x');
 
+  if (u.pathname === '/favicon.ico') {
+    res.writeHead(204); return res.end();   // silence browser favicon 404
+  }
   if (u.pathname === '/' || u.pathname === '/index.html') {
     return send(res, 200, fs.readFileSync(path.join(ROOT, 'public', 'index.html'), 'utf8'), 'text/html');
   }

← a537317 feature-harvest: in-UI 'Rebuild thumbnails' button with asyn  ·  back to Feature Harvest  ·  feature-harvest: add skills + agents as review sources (244+ 921f77f →