migliorie a proxytranslate, possibile fix tests

This commit is contained in:
mac12m99
2021-01-25 23:06:41 +01:00
parent 342d36fa78
commit af0a83b5cf
5 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -418,7 +418,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('CF', False) and 'Ray ID' in response['data'] and not opt.get('post', None):
logger.debug("CF retry... for domain: %s" % domain)
from lib import proxytranslate
gResp = proxytranslate.process_request_proxy(url)