forked from Icycoide/searxng
[fix] bing engines: fetch_supported_languages
The Request to and the Response from https://www.bing.com/account/general has been changed. [1] https://github.com/searxng/searxng/pull/672#discussion_r777104919 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
021b4a0a02
commit
61ce0c2244
2 changed files with 21 additions and 12 deletions
|
@ -193,7 +193,7 @@ def set_language_attributes(engine):
|
|||
if hasattr(engine, '_fetch_supported_languages'):
|
||||
headers = {
|
||||
'User-Agent': gen_useragent(),
|
||||
'Accept-Language': 'ja-JP,ja;q=0.8,en-US;q=0.5,en;q=0.3', # bing needs a non-English language
|
||||
'Accept-Language': "en-US,en;q=0.5", # bing needs to set the English language
|
||||
}
|
||||
engine.fetch_supported_languages = (
|
||||
# pylint: disable=protected-access
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue