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

Relax Content-Length in unset union payloads #1984

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Sep 19, 2023

Some HTTP clients will automatically set this value to 0, but others will explicitly not set the header. The length has no effect on service behavior, so it is relaxed by removing the assertion.

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

@kstich kstich requested a review from a team as a code owner September 19, 2023 18:59
@kstich kstich merged commit 5ee9c18 into smithy-lang:main Sep 20, 2023
@kstich kstich deleted the relax_content_length_union_payload branch September 20, 2023 17:39
milesziemer pushed a commit that referenced this pull request Mar 27, 2024
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