1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

Add HTTP Referer header to DuckDuckGo requests

closes #2080
This commit is contained in:
Rudis Muiznieks 2023-01-06 16:07:37 -06:00
parent b241015e93
commit 128b8c7f0a
No known key found for this signature in database
GPG Key ID: CABF2F86EF7884F9

View File

@ -73,6 +73,7 @@ def request(query, params):
# link again and again ..
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
params['headers']['Referer'] = 'https://lite.duckduckgo.com/'
# initial page does not have an offset
if params['pageno'] == 2: