Handle case insensitivity for HTTP/1.1 headers.

This commit is contained in:
DerVerruckteFuchs 2020-05-26 02:00:05 -04:00
parent 0ab14399ae
commit 025da92450
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ _1984hosting_login() {
_debug2 response "$response"
if [ "$response" = '{"loggedin": true, "ok": true}' ]; then
One984HOSTING_COOKIE="$(grep '^set-cookie:' "$HTTP_HEADER" | _tail_n 1 | _egrep_o 'sessionid=[^;]*;' | tr -d ';')"
One984HOSTING_COOKIE="$(grep -i '^set-cookie:' "$HTTP_HEADER" | _tail_n 1 | _egrep_o 'sessionid=[^;]*;' | tr -d ';')"
export One984HOSTING_COOKIE
_saveaccountconf_mutable One984HOSTING_COOKIE "$One984HOSTING_COOKIE"
return 0