Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefer the stdlib SSLContext over urllib3 context
We do not go through the effort of finding the right PROTOCOL setting if we have SSLContext in the stdlib. So we do not want to hit the code that uses PROTOCOL to set the urllib3-provided ssl context when SSLContext is available. Also, the urllib3 implementation appears to have a bug in some recent versions. Preferring the stdlib version will work around that for those with Python-2.7.9+ as well. Fixes ansible#26235 Fixes ansible#25402 Fixes ansible#31998
- Loading branch information