From 8ac72800c586b5b4883dc823e9d32acb7c9be15e Mon Sep 17 00:00:00 2001 From: Halbow Date: Sat, 27 Jul 2019 04:13:59 +0200 Subject: [PATCH] Removed deprecated TLS versions --- httpx/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httpx/config.py b/httpx/config.py index 40e7cdc210..de2b8058c8 100644 --- a/httpx/config.py +++ b/httpx/config.py @@ -147,6 +147,8 @@ def _create_default_ssl_context(self) -> ssl.SSLContext: context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.options |= ssl.OP_NO_SSLv2 context.options |= ssl.OP_NO_SSLv3 + context.options |= ssl.OP_NO_TLSv1 + context.options |= ssl.OP_NO_TLSv1_1 context.options |= ssl.OP_NO_COMPRESSION context.set_ciphers(DEFAULT_CIPHERS)