diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-08-01 17:01:59 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-08-01 17:01:59 +0200 |
commit | 8df1f0c47e03fe7525c40a2856dba950bab8998b (patch) | |
tree | 844dc7ca4d31f0ff97c07d1817dbfba591420b30 /searx/engines/duckduckgo.py | |
parent | a2badb4fe47eaa6df26b7bc0ef601cb9179edc3a (diff) | |
download | searxng-8df1f0c47e03fe7525c40a2856dba950bab8998b.tar.gz searxng-8df1f0c47e03fe7525c40a2856dba950bab8998b.zip |
[mod] add 'Accept-Language' HTTP header to online processores
Most engines that support languages (and regions) use the Accept-Language from
the WEB browser to build a response that fits to the language (and region).
- add new engine option: send_accept_language_header
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/duckduckgo.py')
-rw-r--r-- | searx/engines/duckduckgo.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index 71da72677..17f0fae1c 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -31,6 +31,7 @@ categories = ['general', 'web'] paging = True supported_languages_url = 'https://duckduckgo.com/util/u588.js' time_range_support = True +send_accept_language_header = True language_aliases = { 'ar-SA': 'ar-XA', |