summaryrefslogtreecommitdiff
path: root/searx/engines/bing.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/bing.py')
-rw-r--r--searx/engines/bing.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py
index 052d567ea..2e58d0293 100644
--- a/searx/engines/bing.py
+++ b/searx/engines/bing.py
@@ -32,10 +32,7 @@ search_string = 'search?{query}&first={offset}'
def request(query, params):
offset = (params['pageno'] - 1) * 10 + 1
- if params['language'] != 'all':
- lang = params['language'].split('-')[0].upper()
- else:
- lang = 'EN'
+ lang = params['language'].split('-')[0].upper()
query = u'language:{} {}'.format(lang, query.decode('utf-8')).encode('utf-8')