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 /docs/admin | |
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 'docs/admin')
-rw-r--r-- | docs/admin/engines/settings.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst index 0b4b984d7..f85c6a75f 100644 --- a/docs/admin/engines/settings.rst +++ b/docs/admin/engines/settings.rst @@ -440,6 +440,7 @@ engine is shown. Most of the options have a default value or even are optional. engine: example shortcut: demo base_url: 'https://{language}.example.com/' + send_accept_language_header: false categories: general timeout: 3.0 api_key: 'apikey' @@ -488,6 +489,13 @@ engine is shown. Most of the options have a default value or even are optional. use multiple sites using only one engine, or updating the site URL without touching at the code. +``send_accept_language_header`` : + Several engines that support languages (or regions) deal with the HTTP header + ``Accept-Language`` to build a response that fits to the locale. When this + option is activated, the language (locale) that is selected by the user is used + to build and send a ``Accept-Language`` header in the request to the origin + search engine. + ``categories`` : optional Define in which categories this engine will be active. Most of the time, it is defined in the code of the engine, but in a few cases it is useful, like when |