Customers have been seeing problems using S3 API compatible implementations that we send a empty string for checksum when it is explicitly set to NOT_SET.
x-amz-sdk-checksum-algorithm: ''
the concept of a enum value not being set is part of our custom enum generation logic, and the serialization of the value falls back on sending a empty string. This change removes sending the header at all.
Issue #, if available:
issues/1961
Description of changes:
Customers have been seeing problems using S3 API compatible implementations that we send a empty string for checksum when it is explicitly set to
NOT_SET
.the concept of a enum value not being set is part of our custom enum generation logic, and the serialization of the value falls back on sending a empty string. This change removes sending the header at all.
This is line with the the smithy protocol tests
removing sending empty string for not present enums will reduce data on the wire, and is more correct according to smithy.
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.