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

Add missing Content-Type headers to @httpPayload protocol tests #2315

Conversation

david-perez
Copy link
Contributor

As per the specs for these protocols, a Content-Type header should be
set. Servers should reject requests when an expected Content-Type
header is not found (protocol tests for that are added in #2314).

Testing

Ran tests in smithy-rs.


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

As per the specs for these protocols, a `Content-Type` header should be
set. Server should reject requests when an expected `Content-Type`
header is not found (protcol tests for that are added in smithy-lang#2314).

- https://smithy.io/2.0/aws/protocols/aws-restjson1-protocol.html#content-type
- https://smithy.io/2.0/aws/protocols/aws-restxml-protocol.html#content-type
@david-perez david-perez requested a review from a team as a code owner June 11, 2024 15:22
@JordonPhillips JordonPhillips merged commit 2b066a1 into smithy-lang:main Jun 13, 2024
13 checks passed
@david-perez david-perez deleted the add-missing-content-type-headers-to-http-payload-protocol-tests branch June 13, 2024 22:58
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