From: Tom Christie Date: Thu, 21 Nov 2024 11:31:57 +0000 (+0000) Subject: Update _config.py X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83fbd7106346010e043345bc3ded5f35dde4172d;p=thirdparty%2Fhttpx.git Update _config.py --- diff --git a/httpx/_config.py b/httpx/_config.py index f28fbee4..590a27a2 100644 --- a/httpx/_config.py +++ b/httpx/_config.py @@ -25,7 +25,7 @@ def create_ssl_context(verify: ssl.SSLContext | bool = True) -> ssl.SSLContext: import truststore if verify is True: - return truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT) + return truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT) elif verify is False: ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ssl_context.check_hostname = False