mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Put CURL's user-agent for DDG
CURL so far always works for getting response from DDG engine when testing from server. Putting CURL’s user-agent for the DDG engine apparently fix the 403 issue as well.
This commit is contained in:
parent
abd2d8605e
commit
df41ecb23f
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ def request(query, params):
|
|||
|
||||
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
|
||||
params['headers']['Referer'] = 'https://google.com/'
|
||||
params['headers']['User-Agent'] = 'curl/7.81.0'
|
||||
|
||||
# initial page does not have an offset
|
||||
if params['pageno'] == 2:
|
||||
|
|
Loading…
Add table
Reference in a new issue