From 756a9d960797c24e1a41adf16419b7e1193a9ea1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 10 Feb 2025 21:21:18 -0600 Subject: [PATCH] favicon: image/x-icon is an acceptable mime type --- src/utils/favicon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/favicon.ts b/src/utils/favicon.ts index fc49c75d..f1ae0f95 100644 --- a/src/utils/favicon.ts +++ b/src/utils/favicon.ts @@ -91,7 +91,7 @@ async function fetchFavicon(domain: string, signal?: AbortSignal): Promise const fallback = await safeFetch(url, { method: 'HEAD', signal }); const contentType = fallback.headers.get('content-type'); - if (fallback.ok && contentType === 'image/vnd.microsoft.icon') { + if (fallback.ok && ['image/vnd.microsoft.icon', 'image/x-icon'].includes(contentType!)) { logi({ level: 'info', ns: 'ditto.favicon', domain, state: 'found', url }); return url; }