A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: use GET requests for the content type request
Mohamed Bassemd6dd8ebdb614
diff --git a/apps/workers/workers/crawlerWorker.ts b/apps/workers/workers/crawlerWorker.tsindex 740d5dac..a2495423 100644--- a/apps/workers/workers/crawlerWorker.ts+++ b/apps/workers/workers/crawlerWorker.ts@@ -926,7 +926,7 @@ async function getContentType(`[Crawler][${jobId}] Attempting to determine the content-type for the url ${url}`,);const response = await fetchWithProxy(url, {- method: "HEAD",+ method: "GET",signal: AbortSignal.any([AbortSignal.timeout(5000), abortSignal]),});const rawContentType = response.headers.get("content-type");