Skip to content

Commit

Permalink
[networking] Fix --legacy-server-connect (#7645)
Browse files Browse the repository at this point in the history
Bugfix for 227bf1a

Authored by: bashonly
  • Loading branch information
bashonly committed Jul 20, 2023
1 parent 71baa49 commit 75dc8e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_networking.py
Expand Up @@ -1152,7 +1152,7 @@ def test_build_handler_params(self):
'debug_printtraffic': True,
'compat_opts': ['no-certifi'],
'nocheckcertificate': True,
'legacy_server_connect': True,
'legacyserverconnect': True,
}) as ydl:
rh = self.build_handler(ydl)
assert rh.headers.get('test') == 'testtest'
Expand Down
2 changes: 1 addition & 1 deletion yt_dlp/YoutubeDL.py
Expand Up @@ -4097,7 +4097,7 @@ def build_request_director(self, handlers):
'verbose': 'debug_printtraffic',
'source_address': 'source_address',
'timeout': 'socket_timeout',
'legacy_ssl_support': 'legacy_server_connect',
'legacy_ssl_support': 'legacyserverconnect',
'enable_file_urls': 'enable_file_urls',
'client_cert': {
'client_certificate': 'client_certificate',
Expand Down

0 comments on commit 75dc8e6

Please sign in to comment.