Skip to content

Commit 7f37abf

Browse files
committed
switch to post requests
1 parent 67ed930 commit 7f37abf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dnsapi/dns_nanelo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dns_nanelo_add() {
3636
_debug _domain "$_domain"
3737

3838
_info "Adding TXT record to ${fulldomain}"
39-
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/addrecord?domain=${_domain}&type=TXT&ttl=60&name=${_sub_domain}&value=${txtvalue}")"
39+
response="$(_post "" "$NANELO_API$NANELO_TOKEN/dns/addrecord?domain=${_domain}&type=TXT&ttl=60&name=${_sub_domain}&value=${txtvalue}" "" "" "")"
4040
if _contains "${response}" 'success'; then
4141
return 0
4242
fi
@@ -68,7 +68,7 @@ dns_nanelo_rm() {
6868
_debug _domain "$_domain"
6969

7070
_info "Deleting resource record $fulldomain"
71-
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/deleterecord?domain=${_domain}&type=TXT&ttl=60&name=${_sub_domain}&value=${txtvalue}")"
71+
response="$(_post "" "$NANELO_API$NANELO_TOKEN/dns/deleterecord?domain=${_domain}&type=TXT&ttl=60&name=${_sub_domain}&value=${txtvalue}" "" "" "")"
7272
if _contains "${response}" 'success'; then
7373
return 0
7474
fi

0 commit comments

Comments
 (0)