mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-19 17:27:02 +00:00
add application/json to acmedns
This commit is contained in:
parent
6e14a073ff
commit
b1d1e70a92
@ -71,7 +71,7 @@ dns_acmedns_add() {
|
|||||||
data="{\"subdomain\":\"$ACMEDNS_SUBDOMAIN\", \"txt\": \"$txtvalue\"}"
|
data="{\"subdomain\":\"$ACMEDNS_SUBDOMAIN\", \"txt\": \"$txtvalue\"}"
|
||||||
|
|
||||||
_debug data "$data"
|
_debug data "$data"
|
||||||
response="$(_post "$data" "$ACMEDNS_UPDATE_URL" "" "POST")"
|
response="$(_post "$data" "$ACMEDNS_UPDATE_URL" "" "POST" "application/json")"
|
||||||
_debug response "$response"
|
_debug response "$response"
|
||||||
|
|
||||||
if ! echo "$response" | grep "\"$txtvalue\"" >/dev/null; then
|
if ! echo "$response" | grep "\"$txtvalue\"" >/dev/null; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user