DNS_IONOS double sending content type & case sensitive mismatch (#7028)
* double sending content type results in error from ionos * Normalize fulldomain to lowercase in the _ionos_get_record function.
This commit is contained in:
+3
-3
@@ -16,7 +16,7 @@ IONOS_TXT_TTL=60 # minimum accepted by API
|
||||
IONOS_TXT_PRIO=10
|
||||
|
||||
dns_ionos_add() {
|
||||
fulldomain=$1
|
||||
fulldomain="$(echo "$1" | _lower_case)"
|
||||
txtvalue=$2
|
||||
|
||||
if ! _ionos_init; then
|
||||
@@ -34,7 +34,7 @@ dns_ionos_add() {
|
||||
}
|
||||
|
||||
dns_ionos_rm() {
|
||||
fulldomain=$1
|
||||
fulldomain="$(echo "$1" | _lower_case)"
|
||||
txtvalue=$2
|
||||
|
||||
if ! _ionos_init; then
|
||||
@@ -146,7 +146,7 @@ _ionos_rest() {
|
||||
|
||||
if [ "$method" != "GET" ]; then
|
||||
export _H2="Accept: application/json"
|
||||
export _H3="Content-Type: application/json"
|
||||
export _H3=
|
||||
|
||||
_response="$(_post "$data" "$IONOS_API$route" "" "$method" "application/json")"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user