[mod] by default allow only HTTPS, not HTTP

Related to https://github.com/searx/searx/pull/2373
This commit is contained in:
Alexandre Flament 2021-03-08 11:35:08 +01:00
parent 0d8b369b5b
commit 99e0651cea
7 changed files with 22 additions and 36 deletions

View file

@ -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