]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
inwx: Be case insensitive while searching for the cookie.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 28 Aug 2023 13:30:26 +0000 (15:30 +0200)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 28 Aug 2023 19:33:54 +0000 (21:33 +0200)
At least since 2023-08-25 the cookie is set via `set-cookie' instead the
expecting `Set-Cookie' string. A month earlier it was working.

Ignore the case while matching the cookie.

Fixes: #4763
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
dnsapi/dns_inwx.sh

index ba789da9234aa422c170466c27c6b380fac5d30b..e483c0e8541b070965dd54c6ea70d2618f4b0ae1 100755 (executable)
@@ -194,7 +194,7 @@ _inwx_login() {
 
   response="$(_post "$xml_content" "$INWX_Api" "" "POST")"
 
-  INWX_Cookie=$(printf "Cookie: %s" "$(grep "domrobot=" "$HTTP_HEADER" | grep "^Set-Cookie:" | _tail_n 1 | _egrep_o 'domrobot=[^;]*;' | tr -d ';')")
+  INWX_Cookie=$(printf "Cookie: %s" "$(grep "domrobot=" "$HTTP_HEADER" | grep -i "^Set-Cookie:" | _tail_n 1 | _egrep_o 'domrobot=[^;]*;' | tr -d ';')")
   _H1=$INWX_Cookie
   export _H1
   export INWX_Cookie