mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
favicon: image/x-icon is an acceptable mime type
This commit is contained in:
parent
e468072b55
commit
756a9d9607
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ async function fetchFavicon(domain: string, signal?: AbortSignal): Promise<URL>
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue