mirror of
https://github.com/searxng/searxng.git
synced 2026-09-12 09:16:06 +00:00
[fix] engines: dogpile web needs api token
This commit is contained in:
@@ -66,7 +66,6 @@ def request(query: str, params: "OnlineParams"):
|
|||||||
params["url"] = f"{base_url}/api/{dogpile_categ}"
|
params["url"] = f"{base_url}/api/{dogpile_categ}"
|
||||||
params["headers"]["Origin"] = base_url
|
params["headers"]["Origin"] = base_url
|
||||||
params["cookies"]["dp_api_token"] = "1"
|
params["cookies"]["dp_api_token"] = "1"
|
||||||
if dogpile_categ != "search": # web doesnt need token
|
|
||||||
params["headers"]["x-dogpile-token"] = _obtain_token()
|
params["headers"]["x-dogpile-token"] = _obtain_token()
|
||||||
|
|
||||||
params["method"] = "POST"
|
params["method"] = "POST"
|
||||||
|
|||||||
Reference in New Issue
Block a user