From: Tom Christie Date: Wed, 17 Feb 2021 11:27:10 +0000 (+0000) Subject: Tweak `create_ssl_context` defaults. (#1447) X-Git-Tag: 0.17.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd4caa873c8b342231b4c71346363b8895a7a7b2;p=thirdparty%2Fhttpx.git 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 --- diff --git a/httpx/_config.py b/httpx/_config.py index 45e93a99..837519af 100644 --- a/httpx/_config.py +++ b/httpx/_config.py @@ -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