[fix] use english in google engine if no language was set - this prevents guessing the language by the IP of the instance
commit6eb950389680b33a24c8bc1cd666d84a08272b41
authorAdam Tauber <asciimoo@gmail.com>
dateWed 22 Nov 2017, 22:56 (9 years ago)
parent6fdb664
searx/engines/google.py+3−4
@@ -165,10 +165,9 @@ def request(query, params):
165165 offset = (params['pageno'] - 1) * 10
166166
167167 if params['language'] == 'all':
168− language = 'en'
169− country = 'US'
170− url_lang = 'lang_en'
171− elif params['language'][:2] == 'jv':
168+ params['language'] = 'en-GB'
169+
170+ if params['language'][:2] == 'jv':
172171 language = 'jw'
173172 country = 'ID'
174173 url_lang = 'lang_jw'