diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_networking.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_networking.py b/test/test_networking.py index 689161fb2..4466fc048 100644 --- a/test/test_networking.py +++ b/test/test_networking.py @@ -1293,6 +1293,10 @@ class TestYoutubeDLNetworking: assert 'Youtubedl-no-compression' not in rh.headers assert rh.headers.get('Accept-Encoding') == 'identity' + with FakeYDL({'http_headers': {'Ytdl-socks-proxy': 'socks://localhost:1080'}}) as ydl: + rh = self.build_handler(ydl) + assert 'Ytdl-socks-proxy' not in rh.headers + def test_build_handler_params(self): with FakeYDL({ 'http_headers': {'test': 'testtest'}, |