From 79a9568a87536aa8e467182f371c95b8a2f25b8b Mon Sep 17 00:00:00 2001 From: xion Date: Mon, 17 Feb 2025 00:37:59 +0800 Subject: [PATCH] fix: remove favicon --- src/module/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/module/index.ts b/src/module/index.ts index c95b995..4e9c34e 100644 --- a/src/module/index.ts +++ b/src/module/index.ts @@ -20,6 +20,8 @@ const fileStore = useFileStore('upload'); const noProxyUrl = ['/', '/favicon.ico']; export const handleRequest = async (req: http.IncomingMessage, res: http.ServerResponse) => { if (req.url === '/favicon.ico') { + res.writeHead(200, { 'Content-Type': 'text/html' }); + res.write('proxy no favicon.ico\n'); return; } if (req.url.startsWith('/api/router')) {