From 94a57affe1901e64845102ed51fe48d4013a15b7 Mon Sep 17 00:00:00 2001 From: Sead Feng Date: Thu, 29 Aug 2024 16:10:18 +0800 Subject: [PATCH 1/2] update proxyFavicon status --- src/lib/server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/server.ts b/src/lib/server.ts index 6008065..d803e7c 100644 --- a/src/lib/server.ts +++ b/src/lib/server.ts @@ -67,7 +67,10 @@ export const proxyFavicon = async ({ domain, request }: { domain: string; reques `https://icons.duckduckgo.com/ip3/${domain}.ico` // `https://icon.horse/icon/${domain}` ]; - let response: Response = new Response(); + let response: Response = new Response("", { + status: 500 + }); + // Attempt to fetch favicon from each source for (const source of sources) { try { From 16582dbbf9d1334721665f2ac0deadd773823c8b Mon Sep 17 00:00:00 2001 From: Sead Feng Date: Thu, 29 Aug 2024 16:10:43 +0800 Subject: [PATCH 2/2] update version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4502da8..f96e04a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "favicon-downloader", - "version": "0.2.3.rc", + "version": "0.2.4.rc", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "favicon-downloader", - "version": "0.2.3.rc", + "version": "0.2.4.rc", "dependencies": { "@hookform/resolvers": "^3.9.0", "@next/third-parties": "^14.2.5", diff --git a/package.json b/package.json index 0ef1eff..26fc5ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "favicon-downloader", - "version": "0.2.3.rc", + "version": "0.2.4.rc", "private": true, "scripts": { "dev": "next dev",