forked from Icycoide/searxng
[mod] by default allow only HTTPS, not HTTP
Related to https://github.com/searx/searx/pull/2373
This commit is contained in:
parent
0d8b369b5b
commit
99e0651cea
7 changed files with 22 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue