Skip to content

Commit

Permalink
Merge pull request #1 from conblem/jsonacmedns
Browse files Browse the repository at this point in the history
add application/json to acmedns
  • Loading branch information
conblem authored Mar 25, 2024
2 parents 6e14a07 + b1d1e70 commit 5c2fb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_acmedns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dns_acmedns_add() {
data="{\"subdomain\":\"$ACMEDNS_SUBDOMAIN\", \"txt\": \"$txtvalue\"}"

_debug data "$data"
response="$(_post "$data" "$ACMEDNS_UPDATE_URL" "" "POST")"
response="$(_post "$data" "$ACMEDNS_UPDATE_URL" "" "POST" "application/json")"
_debug response "$response"

if ! echo "$response" | grep "\"$txtvalue\"" >/dev/null; then
Expand Down

0 comments on commit 5c2fb50

Please sign in to comment.