1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-11 03:55:14 +00:00
Files
yt-dlp/yt_dlp/downloader/http.py
Felix S 0715f7e19b Revert erroneous use of the Content-Length header (#637)
This reverts commit 6c907eb33f

The use of the Content-Length value here is erroneous and may lead
to truncated downloads if a compression scheme is specified in the
Content-Encoding header, as the Content-Length header refers to the
size of encoded data, not of the raw bytestream. This has been noticed
in the wild with WebVTT subtitle segments.

Authored by: fstirlitz
2021-08-11 21:09:17 +05:30

16 KiB