forked from searxng/searx-space
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to grade TLS certificates with CryptCheck searxstats has to retrieve the certificates. Previously this was done by monkey patching httpx.backends.asyncio.AsyncioBackend. The backend parameter for AsyncClient has however been removed in httpx 0.12.0[1]. Since monkey patching private APIs isn't a good idea anyway this commit instead monkey patches the public API of the ssl.SSLContext class of the standard library. [1]: encode/httpx#782 Fixes searxng#89.
- Loading branch information
1 parent
b7b77e2
commit dd81016
Showing
3 changed files
with
30 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pyOpenSSL==19.1.0 | ||
pyOpenSSL==21.0.0 | ||
httpx==0.11.0 | ||
brotlipy==0.7.0 | ||
uvloop==0.14.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters