mirror of
https://github.com/searxng/searxng.git
synced 2024-08-21 22:00:19 +02:00
Merge pull request #2081 from rudism/duckduckgo-referer
Add HTTP Referer header to DuckDuckGo requests
This commit is contained in:
commit
633ba8b1b6
@ -73,6 +73,7 @@ def request(query, params):
|
|||||||
# link again and again ..
|
# link again and again ..
|
||||||
|
|
||||||
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
|
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
|
||||||
|
params['headers']['Referer'] = 'https://lite.duckduckgo.com/'
|
||||||
|
|
||||||
# initial page does not have an offset
|
# initial page does not have an offset
|
||||||
if params['pageno'] == 2:
|
if params['pageno'] == 2:
|
||||||
|
Loading…
Reference in New Issue
Block a user