From 93f7f7eee2e843b3b3057b7854508c68c6432f3e Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 15 Sep 2020 10:54:31 +0200 Subject: [mod] upgrade requests to version 2.24.0. use ssl instead of pyopenssl. requests 2.24.0 uses the ssl module except if it doesn't support SNI, in this case searx fallbacks to pyopenssl. searx logs a critical message and exit if the ssl modules doesn't support SNI and pyOpenSSL is not installed. searx logs a critical message and exit if the ssl version is older than 1.0.2. in requirements.txt, pyopenssl is still required to install searx as a fallback. --- searx/webapp.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index bba37cce1..2be15ab91 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -78,13 +78,6 @@ from searx.plugins.oa_doi_rewrite import get_doi_resolver from searx.preferences import Preferences, ValidationException, LANGUAGE_CODES from searx.answerers import answerers -# check if the pyopenssl package is installed. -# It is needed for SSL connection without trouble, see #298 -try: - import OpenSSL.SSL # NOQA -except ImportError: - logger.critical("The pyopenssl package has to be installed.\n" - "Some HTTPS connections will fail") # serve pages with HTTP/1.1 from werkzeug.serving import WSGIRequestHandler -- cgit v1.2.3