Update login api

support http1.1 and http2 302
This commit is contained in:
jinhill 2021-09-03 15:38:45 +08:00 committed by GitHub
parent 2389136674
commit ccf5a24787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ _login() {
_err "geoscaling login failed for user $GEOS_Username bad RC from _post"
return 1
fi
resp_header=$(grep 'HTTP/2 302' "$HTTP_HEADER")
resp_header=$(grep '302' "$HTTP_HEADER")
if [ -z "$resp_header" ]; then
_err "geoscaling login failed for user $GEOS_Username. Check $HTTP_HEADER file"
return 1