1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 14:45:14 +00:00

[cleanup] Misc (#9426)

Authored by: bashonly, pukkandan
This commit is contained in:
bashonly
2024-04-09 11:12:26 -05:00
committed by GitHub
parent b19ae095fd
commit 216f6a3cb5
6 changed files with 44 additions and 25 deletions

View File

@@ -124,7 +124,7 @@ def make_ssl_context(
context.verify_mode = ssl.CERT_REQUIRED if verify else ssl.CERT_NONE
# OpenSSL 1.1.1+ Python 3.8+ keylog file
if hasattr(context, 'keylog_filename'):
context.keylog_filename = os.environ.get('SSLKEYLOGFILE')
context.keylog_filename = os.environ.get('SSLKEYLOGFILE') or None
# Some servers may reject requests if ALPN extension is not sent. See:
# https://github.com/python/cpython/issues/85140