From 39c65963215567e7f04dbb447a90767ff346904a Mon Sep 17 00:00:00 2001 From: Arnoud Vermeer Date: Tue, 15 Dec 2020 16:32:01 +0100 Subject: [PATCH] Fix == issue --- dnsapi/dns_pdns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_pdns.sh b/dnsapi/dns_pdns.sh index 3453890f..9c6abc80 100755 --- a/dnsapi/dns_pdns.sh +++ b/dnsapi/dns_pdns.sh @@ -207,7 +207,7 @@ _pdns_rest() { export _H1="X-API-Key: $PDNS_Token" if [ ! "$method" = "GET" ]; then - if [ "$method" == "PATCH" ]; then + if [ "$method" = "PATCH" ]; then export _H2="Content-Type: application/json" fi _debug data "$data"