Skip to content

Commit e6bacb4

Browse files
committed
Add comment to explain the revert
1 parent 9b83908 commit e6bacb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pip/_internal/network/download.py

+3
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ def __init__(
172172
def __call__(self, link: Link, location: str) -> Tuple[str, str]:
173173
"""Download the file given by link into location."""
174174
resp = _http_get_download(self._session, link)
175+
# NOTE: The original download size needs to be passed down everywhere
176+
# so if the download is resumed (with a HTTP Range request) the progress
177+
# bar will report the right size.
175178
total_length = _get_http_response_size(resp)
176179
content_type = resp.headers.get("Content-Type", "")
177180

0 commit comments

Comments
 (0)