Closed jakedipity closed 1 year ago
Only set the "Content-Type" of a request to "application/json" only if the request includes a body. This ensures the "Content-Type" is appropriate for the request and is interpretted correctly by the API.
Signed-off-by: Jacob Hull jacob@planethull.com
@jsumners Fixed the failing test and added a new test to verify content-type is not set for a body-less request
content-type
Only set the "Content-Type" of a request to "application/json" only if the request includes a body. This ensures the "Content-Type" is appropriate for the request and is interpretted correctly by the API.
Signed-off-by: Jacob Hull jacob@planethull.com