S3: get/head with partNumber is returning 200 status code instead of 206
vincer opened this issue · comments
vince rosso commented
s3 = boto3.resource("s3")
s3.create_bucket(Bucket="bucket")
s3.Object("bucket", "some-key").put(Body="foo")
assert s3.meta.client.head_object(Bucket="bucket", Key="some-key", PartNumber=1)["ResponseMetadata"]["HTTPStatusCode"] == 206
Since it's effectively a range request, it should return 206, not 200. Same for get_object
.