summaryrefslogtreecommitdiff
path: root/searx/engines/demo_online.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-08-01 17:01:59 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-08-01 17:01:59 +0200
commit8df1f0c47e03fe7525c40a2856dba950bab8998b (patch)
tree844dc7ca4d31f0ff97c07d1817dbfba591420b30 /searx/engines/demo_online.py
parenta2badb4fe47eaa6df26b7bc0ef601cb9179edc3a (diff)
[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/demo_online.py')
-rw-r--r--searx/engines/demo_online.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/engines/demo_online.py b/searx/engines/demo_online.py
index ee39a2f5a..08add5371 100644
--- a/searx/engines/demo_online.py
+++ b/searx/engines/demo_online.py
@@ -20,6 +20,7 @@ from json import loads
from urllib.parse import urlencode
engine_type = 'online'
+send_accept_language_header = True
categories = ['general']
disabled = True
timeout = 2.0