summaryrefslogtreecommitdiff
path: root/searx/search
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-03-12 19:21:46 +0100
committerGitHub <noreply@github.com>2021-03-12 19:21:46 +0100
commita1a492baed8f6d531ea95cf4fde539e48328f3cb (patch)
treecfb20a8974598c0fd90d2426220e95366cef480c /searx/search
parentaf3e969c5a4d7b9170076ffc74ec52b24f00915c (diff)
parent99e0651ceaffdc9f57ca4fc1be50fdec8864f4cb (diff)
Merge pull request #2641 from dalf/disable_http_by_default
[mod] by default allow only HTTPS, not HTTP
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