Skip to content

Commit

Permalink
pdns: fix notify (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainOL authored Aug 3, 2023
1 parent 3cefc7a commit 35c259e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/dns/pdns/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ func newJSONRequest(ctx context.Context, method string, endpoint *url.URL, paylo

req.Header.Set("Accept", "application/json")

if payload != nil {
// PowerDNS doesn't follow HTTP convention about the "Content-Type" header.
if method != http.MethodGet && method != http.MethodDelete {
req.Header.Set("Content-Type", "application/json")
}

Expand Down

0 comments on commit 35c259e

Please sign in to comment.