From 00b0394e198cb9983c8e023eae531dbbcb125c42 Mon Sep 17 00:00:00 2001 From: MrPaulBlack Date: Thu, 14 Oct 2021 14:15:55 +0200 Subject: [PATCH] [fix] language param for qwant --- searx/engines/qwant.py | 4 ++-- 1 file 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