Browse Source
Merge pull request #1 from conblem/jsonacmedns
add application/json to acmedns
pull/5066/head
conblem
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_acmedns.sh
|
|
@ -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 |
|
|
|