]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Tweak `create_ssl_context` defaults. (#1447)
authorTom Christie <tom@tomchristie.com>
Wed, 17 Feb 2021 11:27:10 +0000 (11:27 +0000)
committerGitHub <noreply@github.com>
Wed, 17 Feb 2021 11:27:10 +0000 (11:27 +0000)
* Version 0.17.0

* create_ssl_config uses trust_env=True default

* Drop CHANGELOG notes, to be included in a version PR instead

httpx/_config.py

index 45e93a99646425b0586b4772024461bc5eb9524f..837519afb544d3a6ab71f9347c6e8a86d074fdce 100644 (file)
@@ -43,7 +43,7 @@ UNSET = UnsetType()
 def create_ssl_context(
     cert: CertTypes = None,
     verify: VerifyTypes = True,
-    trust_env: bool = None,
+    trust_env: bool = True,
     http2: bool = False,
 ) -> ssl.SSLContext:
     return SSLConfig(
@@ -63,7 +63,7 @@ class SSLConfig:
         *,
         cert: CertTypes = None,
         verify: VerifyTypes = True,
-        trust_env: bool = None,
+        trust_env: bool = True,
         http2: bool = False,
     ):
         self.cert = cert