smithy-lang / smithy

Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
https://smithy.io
Apache License 2.0
1.7k stars 201 forks source link

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

Closed david-perez closed 2 weeks ago

david-perez commented 3 weeks ago

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.