Skip to content

Commit

Permalink
Change grep to be case-insensitive when looking for Set-Cookie header…
Browse files Browse the repository at this point in the history
… since INWX change casing to lowercase
  • Loading branch information
glocknerc committed Aug 23, 2023
1 parent 0da839c commit 9143cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnsapi/dns_inwx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9143cd1

Please sign in to comment.