Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip HEAD for multipart check when multipart_threshold is 0 #316

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

daveisfera
Copy link

Each download does a HEAD before the GET, but unless the file is possible a very large file that would benefit from multipart download, then this is just adding unneeded operations and delay. This PR changes it so that multipart_threshold being 0 will skip the HEAD call and I'd argue that this should be the changed to the default behavior as well

Related to boto/boto3#3083

@daveisfera
Copy link
Author

Changed to None since there's a check that the value isn't 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant