[ie] Do not smuggle http_headers
See: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x Authored by: coletdjnz
This commit is contained in:
parent
d4f14a72dc
commit
f04b5bedad
9 changed files with 19 additions and 15 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue