Browse Source
Update login api
support http1.1 and http2 302
pull/3195/head
jinhill
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_geos.sh
|
|
|
@ -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 |
|
|
|
|