mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 06:00:00 +00:00
[networking] Fix --legacy-server-connect
(#7645)
Bugfix for 227bf1a33b
Authored by: bashonly
This commit is contained in:
parent
71baa490eb
commit
75dc8e673b
2 changed files with 2 additions and 2 deletions
|
@ -1152,7 +1152,7 @@ def test_build_handler_params(self):
|
||||||
'debug_printtraffic': True,
|
'debug_printtraffic': True,
|
||||||
'compat_opts': ['no-certifi'],
|
'compat_opts': ['no-certifi'],
|
||||||
'nocheckcertificate': True,
|
'nocheckcertificate': True,
|
||||||
'legacy_server_connect': True,
|
'legacyserverconnect': True,
|
||||||
}) as ydl:
|
}) as ydl:
|
||||||
rh = self.build_handler(ydl)
|
rh = self.build_handler(ydl)
|
||||||
assert rh.headers.get('test') == 'testtest'
|
assert rh.headers.get('test') == 'testtest'
|
||||||
|
|
|
@ -4097,7 +4097,7 @@ def build_request_director(self, handlers):
|
||||||
'verbose': 'debug_printtraffic',
|
'verbose': 'debug_printtraffic',
|
||||||
'source_address': 'source_address',
|
'source_address': 'source_address',
|
||||||
'timeout': 'socket_timeout',
|
'timeout': 'socket_timeout',
|
||||||
'legacy_ssl_support': 'legacy_server_connect',
|
'legacy_ssl_support': 'legacyserverconnect',
|
||||||
'enable_file_urls': 'enable_file_urls',
|
'enable_file_urls': 'enable_file_urls',
|
||||||
'client_cert': {
|
'client_cert': {
|
||||||
'client_certificate': 'client_certificate',
|
'client_certificate': 'client_certificate',
|
||||||
|
|
Loading…
Reference in a new issue