-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
In the download function, it's currently set to use response.raw, via shutil.copyfileobj. It's easy to see that this avoids loading the whole downloaded file into memory, as opposed to the commented out line next to it that just writes response.content.
However, if I'm reading the 'requests' documentation correctly, response.content will automatically handle gzip/deflate and result in the correct file if the server uses these, while response.raw, being genuinely raw socket data, will not handle this, and the resulting file will not be what is expected.
Am I right or not? I don't currently have a compliant server to test that against.
Metadata
Metadata
Assignees
Labels
No labels