diff options
author | Alexandre Flament <alex@al-f.net> | 2020-09-15 10:54:31 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-09-26 19:30:27 +0200 |
commit | 93f7f7eee2e843b3b3057b7854508c68c6432f3e (patch) | |
tree | f1b46097be9ca1a2061c6962f7e7a6fa5e5b2399 /searx/webapp.py | |
parent | 21dbc7e852a5c48097c0067e78f0600972e54823 (diff) | |
download | searxng-93f7f7eee2e843b3b3057b7854508c68c6432f3e.tar.gz searxng-93f7f7eee2e843b3b3057b7854508c68c6432f3e.zip |
[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.
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 7 |
1 files changed, 0 insertions, 7 deletions
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 |