This PR is to address a recent regression in Emscripten support for urllib3. We began unilaterally creating an SSLContext without consideration for Python versions built without an ssl module. This is handled in urllib3 but missed in our usage of create_urllib3_context.
This PR expands on the fix in #6716 by also evaluating both the presence of the ssl module before creating and setting the default SSLContext.
This PR is to address a recent regression in Emscripten support for urllib3. We began unilaterally creating an SSLContext without consideration for Python versions built without an ssl module. This is handled in urllib3 but missed in our usage of
create_urllib3_context
.This PR expands on the fix in #6716 by also evaluating both the presence of the
ssl
module before creating and setting the default SSLContext.