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 protocol test for when content-type must be set but no headers are sent #2310

Closed david-perez closed 3 weeks ago

david-perez commented 3 weeks ago

The suite already contains a test with ID RestJsonWithBodyExpectsApplicationJsonContentType for when Content-Type: aplication/json is expected by the server but the client sends a wrong value for the header. However, there is no test testing the case where the client sends no headers. This commit adds such a test.

Testing


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