diff options
author | MrPaulBlack <paul.accounts@protonmail.com> | 2021-10-14 14:15:55 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2021-10-14 16:11:44 +0000 |
commit | 00b0394e198cb9983c8e023eae531dbbcb125c42 (patch) | |
tree | e7c0476a361b7d6b9604af1ddeff132ffc2b6b4e /searx/engines | |
parent | ee5e9f9e1d488d8d24086b8111ac6ecff4abd77a (diff) | |
download | searxng-00b0394e198cb9983c8e023eae531dbbcb125c42.tar.gz searxng-00b0394e198cb9983c8e023eae531dbbcb125c42.zip |
[fix] language param for qwant
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/qwant.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index 167163b8e..249a1f4e4 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -85,14 +85,14 @@ def request(query, params): # add language tag if params['language'] == 'all': - params['url'] += '&locale=en_us' + params['url'] += '&locale=en_US' else: language = match_language( params['language'], supported_languages, language_aliases, ) - params['url'] += '&locale=' + language.replace('-', '_').lower() + params['url'] += '&locale=' + language.replace('-', '_') params['raise_for_httperror'] = False return params |