From e49cc07bc91be70791841ea1d80c43b4c8866a2a Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 21 Nov 2024 13:35:10 +0000 Subject: [PATCH] Update ssl.md --- docs/advanced/ssl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced/ssl.md b/docs/advanced/ssl.md index 024ef56c21..c70e05a943 100644 --- a/docs/advanced/ssl.md +++ b/docs/advanced/ssl.md @@ -1,4 +1,4 @@ -When making a request over HTTPS, HTTPX needs to verify the identity of the requested host. To do this, it relies on the [`truststore`](https://truststore.readthedocs.io/en/latest/) package to load the system certificates, ensuring that `httpx` has the same behaviour on SSL sites as your browser. +When making a request over HTTPS, HTTPX needs to verify the identity of the requested host. We rely on the [`truststore`](https://truststore.readthedocs.io/en/latest/) package to load the system certificates, ensuring that `httpx` has the same behaviour on SSL sites as your browser. ### SSL verification @@ -9,7 +9,7 @@ By default httpx will verify HTTPS connections, and raise an error for invalid S httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997) ``` -If you're confident that you want to visit a site without using SSL you can disable SSL verification completely... +If you're confident that you want to visit a site with an invalid certificate you can disable SSL verification completely... ```python >>> httpx.get("https://expired.badssl.com/", verify=False)