Skip to content

Commit

Permalink
Use ALPN extension fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3D3V committed Jul 4, 2024
1 parent 0a09420 commit ab29ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bbb_dl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ def get_ssl_context(
else:
ssl_context = ssl._create_unverified_context() # pylint: disable=protected-access

# Activate ALPN extension
ssl_context.set_alpn_protocols(['http/1.1'])

if allow_insecure_ssl:
# This allows connections to legacy insecure servers
# https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_options.html#SECURE-RENEGOTIATION
Expand Down
2 changes: 1 addition & 1 deletion bbb_dl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.11'
__version__ = '1.0.12'

0 comments on commit ab29ee0

Please sign in to comment.