diff options
author | coletdjnz <coletdjnz@protonmail.com> | 2024-07-14 11:22:43 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-14 11:22:43 +1200 |
commit | 150ecc45d9cacc919550c13b04fd998ac5103a6b (patch) | |
tree | 88f2e04b6e7fdc0d2f49a43984bc1ff0327773b3 /yt_dlp/networking/_curlcffi.py | |
parent | 8b8b442cb005a8d85315f301615f83fb736b967a (diff) |
[networking] Add `legacy_ssl` request extension (#10448)
Supported by Urllib, Requests and Websockets request handlers. Ignored by CurlCFFI.
Also added couple cookie-related tests.
Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/networking/_curlcffi.py')
-rw-r--r-- | yt_dlp/networking/_curlcffi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yt_dlp/networking/_curlcffi.py b/yt_dlp/networking/_curlcffi.py index 45b25cefb..e8a67b734 100644 --- a/yt_dlp/networking/_curlcffi.py +++ b/yt_dlp/networking/_curlcffi.py @@ -146,6 +146,9 @@ class CurlCFFIRH(ImpersonateRequestHandler, InstanceStoreMixin): extensions.pop('impersonate', None) extensions.pop('cookiejar', None) extensions.pop('timeout', None) + # CurlCFFIRH ignores legacy ssl options currently. + # Impersonation generally uses a looser SSL configuration than urllib/requests. + extensions.pop('legacy_ssl', None) def send(self, request: Request) -> Response: target = self._get_request_target(request) |