A feature-rich command-line audio/video downloader
Revert erroneous use of the `Content-Length` header (#637)
Felix S0715f7e19b4f
diff --git a/yt_dlp/downloader/http.py b/yt_dlp/downloader/http.pyindex 9830f9e273..1edb0f91f6 100644--- a/yt_dlp/downloader/http.py+++ b/yt_dlp/downloader/http.py@@ -238,7 +238,7 @@ class HttpFD(FileDownloader):while True:try:# Download and write- data_block = ctx.data.read(block_size if data_len is None else min(block_size, data_len - byte_counter))+ data_block = ctx.data.read(block_size if not is_test else min(block_size, data_len - byte_counter))# socket.timeout is a subclass of socket.error but may not have# errno setexcept socket.timeout as e: