Arash Hatami
2 years ago
No known key found for this signature in database
GPG Key ID: D3D9E8CB2E49731F
1 changed files with
2 additions and
1 deletions
-
dnsapi/dns_arvan.sh
|
@ -141,10 +141,11 @@ _arvan_rest() { |
|
|
response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")" |
|
|
response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")" |
|
|
elif [ "$mtd" = "POST" ]; then |
|
|
elif [ "$mtd" = "POST" ]; then |
|
|
export _H2="Content-Type: application/json" |
|
|
export _H2="Content-Type: application/json" |
|
|
|
|
|
export _H3="Accept: application/json" |
|
|
_debug data "$data" |
|
|
_debug data "$data" |
|
|
response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")" |
|
|
response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")" |
|
|
else |
|
|
else |
|
|
response="$(_get "$ARVAN_API_URL/$ep$data")" |
|
|
response="$(_get "$ARVAN_API_URL/$ep$data")" |
|
|
fi |
|
|
fi |
|
|
return 0 |
|
|
return 0 |
|
|
} |
|
|
|
|
|
|
|
|
} |