From 99e0651ceaffdc9f57ca4fc1be50fdec8864f4cb Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Mon, 8 Mar 2021 11:35:08 +0100 Subject: [mod] by default allow only HTTPS, not HTTP Related to https://github.com/searx/searx/pull/2373 --- searx/search/processors/online.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/search/processors') 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 -- cgit v1.2.3