Merge pull request #2961 from DerVerruckteFuchs/master

Fix broken grep so that One984HOSTING_COOKIE actually gets set, and isn't left empty.
This commit is contained in:
neil authored and GitHub committed 2020-05-26 21:39:47 +08:00
commit 60e04b9065
1 file changed
+1 -1
+1 -1
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.