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

fix: Fix MD5 middleware codegen & runtime code to match spec #885

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sichanyoo
Copy link
Contributor

@sichanyoo sichanyoo commented Dec 14, 2024

Corresponding PR: awslabs/aws-sdk-swift#1803

Issue #

1516

Description of changes

  • Restrict both the usage generation criteria for ContentMD5Middleware and MD5 hash calculation criteria in ContentMD5Middleware to match spec; it will be phased out by flexible checksum in the future.
  • For users that really need to continue to use Content-MD5 headers, they can still be provide it as input members. It will then be serialized in to the request automatically. What the change in this PR does is effectively turning off SDK calculating the MD5 checksum for users and instead using flexible checksums behind the scenes.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… hash calculation critera in runtime code.
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.

2 participants