Expected behavior for "Content-Type" header on GET requests for restJson1 #1450
Labels
guidance
Question that needs advice or information.
protocol-test
New protocol tests are needed
server
This issue involves the specification for server software.
Original issue: smithy-lang/smithy-rs#1845
What is the expected behavior of smithy clients/servers in the restJson1 protocol for the Content-Type header?
The protocol tests have one example showing that a response of HTTP 415 should be given if Content-Type is included on a POST request without a body.
But what about other HTTP verbs like GET, DELETE, or OPTIONS? Should it always be considered a malformed request if Content-Type is included when the request body is empty?
The text was updated successfully, but these errors were encountered: