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:
MarFri 2026-07-02 17:08:59 +02:00 committed by GitHub
parent 5433ea86c8
commit a50fad865f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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