summaryrefslogtreecommitdiff
path: root/searx/search
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-03-08 11:35:08 +0100
committerAlexandre Flament <alex@al-f.net>2021-03-08 11:35:08 +0100
commit99e0651ceaffdc9f57ca4fc1be50fdec8864f4cb (patch)
tree6aa25c99e8c0f70cf04257615968203ae6ef808e /searx/search
parent0d8b369b5b300e8a575d6715fc75067d09db63a5 (diff)
downloadsearxng-99e0651ceaffdc9f57ca4fc1be50fdec8864f4cb.tar.gz
searxng-99e0651ceaffdc9f57ca4fc1be50fdec8864f4cb.zip
[mod] by default allow only HTTPS, not HTTP
Related to https://github.com/searx/searx/pull/2373
Diffstat (limited to 'searx/search')
-rw-r--r--searx/search/processors/online.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/search/processors/online.py b/searx/search/processors/online.py
index df0ab8c21..1fc6444ad 100644
--- a/searx/search/processors/online.py
+++ b/searx/search/processors/online.py
@@ -131,6 +131,8 @@ class OnlineProcessor(EngineProcessor):
poolrequests.set_timeout_for_thread(timeout_limit, start_time=start_time)
# reset the HTTP total time
poolrequests.reset_time_for_thread()
+ # enable HTTP only if explicitly enabled
+ poolrequests.set_enable_http_protocol(self.engine.enable_http)
# suppose everything will be alright
requests_exception = False