June 19th, 2024
Breaking Changes:
-
🐛
⚠️ (server, smithy-rs#3690) Fix requestContent-Type
header checkingTwo bugs related to how servers were checking the
Content-Type
header in incoming requests have been fixed:Content-Type
header checking was incorrectly succeeding when noContent-Type
header was present but one was expected.- When a shape was @httpPayload
-bound,
Content-Type` header checking occurred even when no payload was being sent. In this case it is not necessary to check the header, since there is no content.
This is a breaking change in that servers are now stricter at enforcing the expected
Content-Type
header is being sent by the client in general, and laxer when the shape is bound with@httpPayload
.