From dae8a080898d0dd2d7a8924123b159daece0edd6 Mon Sep 17 00:00:00 2001 From: Allen <64094914+allendema@users.noreply.github.com> Date: Sun, 17 Apr 2022 11:29:23 +0200 Subject: [PATCH] [fix[ Update only cookies/headers --- searx/engines/xpath.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index a34ed38b2..705a5211d 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -171,8 +171,8 @@ def request(query, params): 'safe_search': safe_search, } - params['cookies'] = cookies - params['headers'] = headers + params['cookies'].update(cookies) + params['headers'].update(headers) params['url'] = search_url.format(**fargs) params['soft_max_redirects'] = soft_max_redirects