From bd4caa873c8b342231b4c71346363b8895a7a7b2 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 17 Feb 2021 11:27:10 +0000 Subject: [PATCH] Tweak `create_ssl_context` defaults. (#1447) * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpx/_config.py b/httpx/_config.py index 45e93a9964..837519afb5 100644 --- a/httpx/_config.py +++ b/httpx/_config.py @@ -43,7 +43,7 @@ class 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 @@ def __init__( *, cert: CertTypes = None, verify: VerifyTypes = True, - trust_env: bool = None, + trust_env: bool = True, http2: bool = False, ): self.cert = cert