Remove AWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_INITIAL_MESSAGE request type and use AWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_GET_OBJECT_WITH_PART_NUMBER_1 if AWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_GET_OBJECT_WITH_RANGE fails due to an empty object. We will try downloading the first part again with partNumber; it will either download an empty file or download the updated file.
Fix aws_s3_calculate_auto_ranged_get_num_parts for an empty file.
Allow users to pass 0 as a size_hint.
Fix onHeaders callback for an empty file.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description of changes:
AWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_INITIAL_MESSAGE
request type and useAWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_GET_OBJECT_WITH_PART_NUMBER_1
ifAWS_S3_AUTO_RANGE_GET_REQUEST_TYPE_GET_OBJECT_WITH_RANGE
fails due to an empty object. We will try downloading the first part again withpartNumber
; it will either download an empty file or download the updated file.aws_s3_calculate_auto_ranged_get_num_parts
for an empty file.size_hint
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.