From e1c9cd232f6dc99869928eaf74fc9c377fe317a9 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Sat, 25 Mar 2023 10:35:39 +0100 Subject: [PATCH] Fix CF --- core/httptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/httptools.py b/core/httptools.py index 00722b16..7ea8c2d7 100755 --- a/core/httptools.py +++ b/core/httptools.py @@ -416,7 +416,7 @@ def downloadpage(url, **opt): response['data'] = response['data'].decode('ISO-8859-1') if req.headers.get('Server', '').startswith('cloudflare') and response_code in [429, 503, 403]\ - and not opt.get('CF', False) and 'Ray ID' in response['data'] and not opt.get('post', None): + and not opt.get('CF', False) and not opt.get('post', None): if 'Px-Host' in req_headers: # first try with proxy logger.debug("CF retry with google translate for domain: %s" % domain) from lib import proxytranslate