From b773164dad1bc9bda8fd7257dce4bf592de381bd Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Sun, 16 May 2021 10:23:09 +0200 Subject: [PATCH] Httptools: popolo url e headers anche se la richiesta fallisce --- core/httptools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/httptools.py b/core/httptools.py index 33ea85a3..f5df5150 100755 --- a/core/httptools.py +++ b/core/httptools.py @@ -389,6 +389,8 @@ def downloadpage(url, **opt): req = requests.Response() if not opt.get('ignore_response_code', False) and not proxy_data.get('stat', ''): response['data'] = '' + response['url'] = '' + response['headers'] = {} response['success'] = False info_dict.append(('Success', 'False')) import traceback