From c10ca29fda84aafc34914889b198e5ae6fca4063 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Tue, 16 Sep 2025 13:05:03 +0000 Subject: [PATCH] fix: remove turnstyle detection to check if it causes false-positives --- src/utils/Fetcher.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index 17f35ef..2edb1cd 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -118,9 +118,7 @@ export class Fetcher { }; private async handleHttpCacheItem(ctx: Context, httpCacheItem: HttpCacheItem, url: URL, init?: CustomRequestInit): Promise { - const triggeredCloudflareTurnstile = httpCacheItem.body.includes('cf-turnstile'); - - if (httpCacheItem.status && httpCacheItem.status >= 200 && httpCacheItem.status <= 399 && !triggeredCloudflareTurnstile) { + if (httpCacheItem.status && httpCacheItem.status >= 200 && httpCacheItem.status <= 399) { return httpCacheItem; } @@ -128,7 +126,7 @@ export class Fetcher { throw new NotFoundError(); } - if (httpCacheItem.headers['cf-mitigated'] === 'challenge' || triggeredCloudflareTurnstile) { + if (httpCacheItem.headers['cf-mitigated'] === 'challenge') { const noFlareSolverr = init?.noFlareSolverr ?? false; const flareSolverrEndpoint = envGet('FLARESOLVERR_ENDPOINT'); if (noFlareSolverr || !flareSolverrEndpoint) {