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: update prefix header tests to allow for empty headers #2415

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

Madrigal
Copy link
Contributor

@Madrigal Madrigal commented Oct 3, 2024

Background

  • What do these changes do?
    Update protocol tests to catch an issue where SDKs were not serializing empty headers

  • Why are they important?
    Had an issue where calling S3 with metadata with an empty value caused SDKs to not serialize the value and not send the header. While serialize empty strings and lists to headers in restXml and restJson1 #2403 addresses the general case of headers present but with no values, it wouldn't cover this scenario since S3 metadata headers are not modeled as httpHeader but as httpPrefixHeader

Testing

Links

  • Links to additional context, if necessary
  • Issue #, if applicable (see here for a list of keywords to use for linking issues)

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

@Madrigal Madrigal requested a review from a team as a code owner October 3, 2024 20:40
@Madrigal Madrigal requested a review from sugmanue October 3, 2024 20:40
@sugmanue
Copy link
Contributor

sugmanue commented Oct 4, 2024

Just a side comment, please notice that Smithy does not use conventional commit messages.

@sugmanue sugmanue merged commit e5d83ed into smithy-lang:main Oct 4, 2024
13 checks passed
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.

3 participants