From 99f5bc735eadb1b50fad5e50a036cf79945b3feb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 16 Mar 2026 09:37:36 +0000 Subject: [PATCH] fix: restore User-Agent header in website icon proxy to fix favicon display Co-authored-by: shuaiplus <100134295+shuaiplus@users.noreply.github.com> --- src/router-public.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router-public.ts b/src/router-public.ts index f593360..b602007 100644 --- a/src/router-public.ts +++ b/src/router-public.ts @@ -87,6 +87,7 @@ async function handleWebsiteIcon(host: string): Promise { const upstream = `https://favicon.im/${encodeURIComponent(normalizedHost)}`; try { const resp = await fetch(upstream, { + headers: { 'User-Agent': 'NodeWarden/1.0' }, redirect: 'follow', cf: { cacheEverything: true,