mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Change GET to HEAD
This commit is contained in:
parent
9841ce7f8e
commit
8942398092
1 changed files with 1 additions and 1 deletions
|
|
@ -483,7 +483,7 @@ export const fetchFavicon = async (
|
|||
): Promise<string | undefined> => {
|
||||
try {
|
||||
// get the correct url if it's a redirect
|
||||
const response = await axios.get(url, { timeout: 5000 })
|
||||
const response = await axios.head(url, { timeout: 5000 })
|
||||
const realUrl = response.request.res.responseUrl
|
||||
const domain = new URL(realUrl).hostname
|
||||
return `https://api.faviconkit.com/${domain}/32`
|
||||
|
|
|
|||
Loading…
Reference in a new issue