-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bad bounds check for downloads.
Previously, if we created a download with `auto_transfer=True` with the full download smaller than the default `chunksize`, and then called `StreamInChunks`, we'd end up downloading the full content twice. This was due to a bad bounds check in setting a range header -- we'd end up with a header like `Range: bytes=100-99`, and the server would ignore the start value, giving us all the bytes again. This adds a fix and a test.
- Loading branch information
1 parent
154baaa
commit 9e706f9
Showing
2 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters