diff options
author | bashonly <bashonly@bashonly.com> | 2023-08-16 18:42:48 -0500 |
---|---|---|
committer | Simon Sawicki <contact@grub4k.xyz> | 2023-11-14 22:04:25 +0100 |
commit | f04b5bedad7b281bee9814686bba1762bae092eb (patch) | |
tree | c18255b7b8d917a21ef1d4aa1fd66b62806fed8c /yt_dlp/utils/networking.py | |
parent | d4f14a72dc1dd79396e0e80980268aee902b61e4 (diff) |
[ie] Do not smuggle `http_headers`
See: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x
Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/utils/networking.py')
-rw-r--r-- | yt_dlp/utils/networking.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/utils/networking.py b/yt_dlp/utils/networking.py index ba0493cc2..ed0250011 100644 --- a/yt_dlp/utils/networking.py +++ b/yt_dlp/utils/networking.py @@ -123,6 +123,7 @@ def clean_headers(headers: HTTPHeaderDict): if 'Youtubedl-No-Compression' in headers: # compat del headers['Youtubedl-No-Compression'] headers['Accept-Encoding'] = 'identity' + headers.pop('Ytdl-socks-proxy', None) def remove_dot_segments(path): |