diff --git a/dnsapi/dns_pdns.sh b/dnsapi/dns_pdns.sh index 8f07e8c4..3453890f 100755 --- a/dnsapi/dns_pdns.sh +++ b/dnsapi/dns_pdns.sh @@ -207,6 +207,9 @@ _pdns_rest() { export _H1="X-API-Key: $PDNS_Token" if [ ! "$method" = "GET" ]; then + if [ "$method" == "PATCH" ]; then + export _H2="Content-Type: application/json" + fi _debug data "$data" response="$(_post "$data" "$PDNS_Url$ep" "" "$method")" else