aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/http.py
diff options
context:
space:
mode:
authorcoletdjnz <coletdjnz@protonmail.com>2023-05-21 10:55:09 +1200
committerGitHub <noreply@github.com>2023-05-20 22:55:09 +0000
commit955c89584b66fcd0fcfab3e611f1edeb1ca63886 (patch)
tree34e055368b414b5cc908e84e97a7823f27f1d7c3 /yt_dlp/downloader/http.py
parent69bec6730ec9d724bcedeab199d9d684d61423ba (diff)
downloadhypervideo-pre-955c89584b66fcd0fcfab3e611f1edeb1ca63886.tar.lz
hypervideo-pre-955c89584b66fcd0fcfab3e611f1edeb1ca63886.tar.xz
hypervideo-pre-955c89584b66fcd0fcfab3e611f1edeb1ca63886.zip
[core] Deprecate internal `Youtubedl-no-compression` header (#6876)
Authored by: coletdjnz
Diffstat (limited to 'yt_dlp/downloader/http.py')
-rw-r--r--yt_dlp/downloader/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.py
index fa72d5722..79f69b5d0 100644
--- a/yt_dlp/downloader/http.py
+++ b/yt_dlp/downloader/http.py
@@ -45,8 +45,8 @@ class HttpFD(FileDownloader):
ctx.tmpfilename = self.temp_name(filename)
ctx.stream = None
- # Do not include the Accept-Encoding header
- headers = {'Youtubedl-no-compression': 'True'}
+ # Disable compression
+ headers = {'Accept-Encoding': 'identity'}
add_headers = info_dict.get('http_headers')
if add_headers:
headers.update(add_headers)