diff options
author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2021-02-25 23:20:50 -0700 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2021-02-25 23:51:49 -0700 |
commit | 9b6ffed061570e2540e219d66e5100a1572c07c8 (patch) | |
tree | 6665d0941df2bd50019d4badbb9d5ce155ace3a4 /.dir-locals.el | |
parent | 728e09676400221a064627509a31470d8f6e33bf (diff) | |
download | searxng-9b6ffed061570e2540e219d66e5100a1572c07c8.tar.gz searxng-9b6ffed061570e2540e219d66e5100a1572c07c8.zip |
fix fetch_languages for bing
Bing has a list of regions that it supports and some of these regions
may have more than one possible language.
In some cases, like Switzerland, these languages are always shown as
options, so there is no issue. But in other cases, like Andorra, Bing
will only show one language at the time, either the region's default or
the request's language if the latter is supported by that region.
For example, if the HTTP request is in French, Andorra will appear as
fr-AD but if the same page is requested in any other language Andorra
will appear as ca-AD.
This is specially a problem when Bing assumes that the request is in
English because it overrides enough language codes to make several major
languages like Arabic dissappear from the languages.py file.
To avoid that issue, I set the Accept-Language header to a language
that's only supported in one region to hopefully avoid these overrides.
Diffstat (limited to '.dir-locals.el')
0 files changed, 0 insertions, 0 deletions