1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-07-03 12:32:52 -05:00

[networking] Fix --legacy-server-connect (#7645)

Bugfix for 227bf1a33b

Authored by: bashonly
This commit is contained in:
bashonly
2023-07-20 08:31:17 -05:00
committed by GitHub
parent 71baa490eb
commit 75dc8e673b
2 changed files with 2 additions and 2 deletions

View File

@ -1152,7 +1152,7 @@ class TestYoutubeDLNetworking:
'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'