logdna / terraform-provider-logdna

Terraform provider to simplify creation of views, preset alerts and other resources in LogDNA!
https://registry.terraform.io/providers/logdna/logdna/latest
MIT License
11 stars 12 forks source link

fix: set request content-type based on payload #89

Closed jakedipity closed 1 year ago

jakedipity commented 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

jakedipity commented 1 year ago

@jsumners Fixed the failing test and added a new test to verify content-type is not set for a body-less request