summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py
index b8e1c1275..dbc52ec75 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -104,7 +104,7 @@ class LanguageParser(QueryPartParser):
break
# user may set a valid, yet not selectable language
- if VALID_LANGUAGE_CODE.match(value):
+ if VALID_LANGUAGE_CODE.match(value) or value == 'auto':
lang_parts = value.split('-')
if len(lang_parts) > 1:
value = lang_parts[0].lower() + '-' + lang_parts[1].upper()