fix: restore User-Agent header in website icon proxy to fix favicon display

Co-authored-by: shuaiplus <100134295+shuaiplus@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-16 09:37:36 +00:00
committed by Shuai
parent 43ec591414
commit 99f5bc735e
+1
View File
@@ -87,6 +87,7 @@ async function handleWebsiteIcon(host: string): Promise<Response> {
const upstream = `https://favicon.im/${encodeURIComponent(normalizedHost)}`;
try {
const resp = await fetch(upstream, {
headers: { 'User-Agent': 'NodeWarden/1.0' },
redirect: 'follow',
cf: {
cacheEverything: true,