From ccf5a247877ff1efbbc4263996ed5b6bf56e5233 Mon Sep 17 00:00:00 2001 From: jinhill Date: Fri, 3 Sep 2021 15:38:45 +0800 Subject: [PATCH] Update login api support http1.1 and http2 302 --- dnsapi/dns_geos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_geos.sh b/dnsapi/dns_geos.sh index df3a79dc..4a14b0d6 100644 --- a/dnsapi/dns_geos.sh +++ b/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