diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-05-05 20:01:25 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-05-05 21:43:39 +0700 |
commit | f7b42518dc4c10d6027bfe7f5e7f186d526b1a4b (patch) | |
tree | e28ff67055c564bb34014a4e93c99b4d32478299 /youtube_dl/extractor/americastestkitchen.py | |
parent | ce7db64bf1a558759be63e92f34550d7ba0e4052 (diff) |
[downloader/http] Finish downloading once received data length matches expected
Always do this if possible, i.e. if Content-Length or expected length is known, not only in test.
This will save unnecessary last extra loop trying to read 0 bytes.
Diffstat (limited to 'youtube_dl/extractor/americastestkitchen.py')
0 files changed, 0 insertions, 0 deletions