summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorAllen <64094914+allendema@users.noreply.github.com>2022-04-17 11:29:23 +0200
committerGitHub <noreply@github.com>2022-04-17 11:29:23 +0200
commitdae8a080898d0dd2d7a8924123b159daece0edd6 (patch)
treebeeaeba09a42f22fa7864e1d8e067c4836c8f486 /searx/engines
parent67fb6fba84d189bc099fc90b1df71db232689f53 (diff)
downloadsearxng-dae8a080898d0dd2d7a8924123b159daece0edd6.tar.gz
searxng-dae8a080898d0dd2d7a8924123b159daece0edd6.zip
[fix[ Update only cookies/headers
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/xpath.py4
1 files 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