mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-24 14:11:42 +00:00
Use _post to send a DELETE request for DNSimple record removal.
This commit is contained in:
parent
5b21cbe0de
commit
5332387125
@ -198,12 +198,12 @@ _dnsimple_rest() {
|
|||||||
export _H1="Accept: application/json"
|
export _H1="Accept: application/json"
|
||||||
export _H2="Authorization: Bearer $DNSimple_OAUTH_TOKEN"
|
export _H2="Authorization: Bearer $DNSimple_OAUTH_TOKEN"
|
||||||
|
|
||||||
if [ "$data" ]; then
|
if [ "$data" ] || [ "$method" = "DELETE" ]; then
|
||||||
_H1="Content-Type: application/json"
|
_H1="Content-Type: application/json"
|
||||||
_debug data "$data"
|
_debug data "$data"
|
||||||
response="$(_post "$data" "$request_url" "" "$method")"
|
response="$(_post "$data" "$request_url" "" "$method")"
|
||||||
else
|
else
|
||||||
response="$(_request "$request_url" "" "" "$method")"
|
response="$(_get "$request_url" "" "" "$method")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user