diff options
author | Alexandre Flament <alex@al-f.net> | 2021-03-18 19:59:01 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-04-10 15:38:33 +0200 |
commit | eaa694fb7d0e47b943bc6d6edb6cb6a40ab2d85e (patch) | |
tree | 024786c8a7003be24bbc566cb8c8e734a143f99d /searx/engines/elasticsearch.py | |
parent | 111180705b6f3b142732eb6325de1346f6372828 (diff) | |
download | searxng-eaa694fb7d0e47b943bc6d6edb6cb6a40ab2d85e.tar.gz searxng-eaa694fb7d0e47b943bc6d6edb6cb6a40ab2d85e.zip |
[enh] replace requests by httpx
Diffstat (limited to 'searx/engines/elasticsearch.py')
-rw-r--r-- | searx/engines/elasticsearch.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/elasticsearch.py b/searx/engines/elasticsearch.py index da7f98074..db84a5c13 100644 --- a/searx/engines/elasticsearch.py +++ b/searx/engines/elasticsearch.py @@ -4,7 +4,6 @@ """ from json import loads, dumps -from requests.auth import HTTPBasicAuth from searx.exceptions import SearxEngineAPIException @@ -32,7 +31,7 @@ def request(query, params): return params if username and password: - params['auth'] = HTTPBasicAuth(username, password) + params['auth'] = (username, password) params['url'] = search_url params['method'] = 'GET' |