Skip to content

Commit

Permalink
yt_dlp: c36513f1be2ef3d3cec864accbffda1afaa06ffd
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 20, 2024
1 parent 3dc86c6 commit 1aba8f8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/yt_dlp/networking/_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
if urllib3_version < (1, 26, 17):
raise ImportError('Only urllib3 >= 1.26.17 is supported')

if requests.__build__ < 0x023100:
raise ImportError('Only requests >= 2.31.0 is supported')
if requests.__build__ < 0x023200:
raise ImportError('Only requests >= 2.32.0 is supported')

import requests.adapters
import requests.utils
Expand Down Expand Up @@ -181,9 +181,13 @@ def proxy_manager_for(self, proxy, **proxy_kwargs):
return super().proxy_manager_for(proxy, **proxy_kwargs, **self._pm_args, **extra_kwargs)

def cert_verify(*args, **kwargs):
# lean on SSLContext for cert verification
# Lean on our SSLContext for cert verification
pass

def _get_connection(self, request, *_, proxies=None, **__):
# Lean on our SSLContext for cert verification
return self.get_connection(request.url, proxies)


class RequestsSession(requests.sessions.Session):
"""
Expand Down

0 comments on commit 1aba8f8

Please sign in to comment.