From 5d3d03a1f1d68207e1c3c2e8a1094dcb11e765f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 2 Jun 2024 16:10:06 +0200 Subject: [PATCH] fix 6cfbc107 the former condition would return True for 2.31.* https://github.com/mikf/gallery-dl/commit/6cfbc1071fd88ed94776aa6f81f1582cda7fa5ab#commitcomment-142642913 --- gallery_dl/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 87712617..d2e39dee 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -837,7 +837,7 @@ def _build_requests_adapter(ssl_options, ssl_ciphers, source_address): if ssl_options or ssl_ciphers: ssl_context = urllib3.connection.create_urllib3_context( options=ssl_options or None, ciphers=ssl_ciphers) - if requests.__version__ > "2.31": + if not requests.__version__ < "2.32": # https://github.com/psf/requests/pull/6731 ssl_context.load_default_certs() ssl_context.check_hostname = False