-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
session: add support for urllib3 2.0 #5326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3c77437
to
8342d40
Compare
@mkbloke could you please help test the |
|
a5ace12
to
5941e7c
Compare
I don't see any further urllib3 incompabilities.
urllib3 2.0.0 however now sets TLS1.2 as the min SSL/TLS version, up from TLS1.0: |
- Bump max version constraint from `<2` to `<3` - Fix `_PERCENT_RE` constant name in URL percent encoding override - Fix `StreamlinkOptions._set_http_disable_dh()`, remove the override of the old `urllib3.util._ssl.DEFAULT_CIPHERS` list and instead add `streamlink.plugin.api.http_session.TLSNoDHAdapter` which reads the ciphers returned by Python's default SSLContext, adds `:!DH` to the updated ciphers list, and finally replaces the HTTP session's `https://` adapter - Use `urllib3.util.create_urllib3_context()` for creating `SSLContext` objects in custom `HTTPAdapter`s
5941e7c
to
1b30ad9
Compare
I did spend quite a bit of time last night looking at this, but have not as yet found anything too helpful. |
<2
to<3
_PERCENT_RE
constant name in URL percent encoding overrideStreamlinkOptions._set_http_disable_dh()
, remove the override of the oldurllib3.util._ssl.DEFAULT_CIPHERS
list and instead addstreamlink.plugin.api.http_session.TLSNoDHAdapter
which reads the ciphers returned by Python's default SSLContext, adds:!DH
to the updated ciphers list, and finally replaces the HTTP session'shttps://
adapterurllib3.util.create_urllib3_context()
for creatingSSLContext
objects in customHTTPAdapter
sResolves #5324
urllib3 migration guide here:
https://urllib3.readthedocs.io/en/stable/v2-migration-guide.html