From 60807b637b2acfc5098ac2f18a4cd9f9113cebfd Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 23 Jun 2023 18:16:14 +0200 Subject: [PATCH] Fix Httptools --- core/httptools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/httptools.py b/core/httptools.py index d47b6a58..9d797008 100755 --- a/core/httptools.py +++ b/core/httptools.py @@ -287,10 +287,11 @@ def downloadpage(url, **opt): # Headers passed as parameters if opt.get('headers', None) is not None: + opt['headers'] = dict(opt['headers']) if not opt.get('replace_headers', False): - req_headers.update(dict(opt['headers'])) + req_headers.update(opt['headers']) else: - req_headers = dict(opt['headers']) + req_headers = opt['headers'] if domain in directIP.keys() and not opt.get('disable_directIP', False): req_headers['Host'] = domain