mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 23:11:44 +00:00
format
This commit is contained in:
parent
ae3dda0f8f
commit
d70b759cb9
8
acme.sh
8
acme.sh
@ -1824,11 +1824,11 @@ _post() {
|
|||||||
[ "$_http_retry_times" = "$_HTTP_MAX_RETRY" ]
|
[ "$_http_retry_times" = "$_HTTP_MAX_RETRY" ]
|
||||||
_lastHCode="$?"
|
_lastHCode="$?"
|
||||||
_debug "Retrying post"
|
_debug "Retrying post"
|
||||||
_post_impl "$body" "$_post_url" "$needbase64" "$httpmethod" "$_postContentType" "$_lastHCode";
|
_post_impl "$body" "$_post_url" "$needbase64" "$httpmethod" "$_postContentType" "$_lastHCode"
|
||||||
_hcode="$?"
|
_hcode="$?"
|
||||||
_debug _hcode "$_hcode"
|
_debug _hcode "$_hcode"
|
||||||
if [ "$_hcode" = "0" ]; then
|
if [ "$_hcode" = "0" ]; then
|
||||||
break;
|
break
|
||||||
fi
|
fi
|
||||||
_http_retry_times=$(_math $_http_retry_times + 1)
|
_http_retry_times=$(_math $_http_retry_times + 1)
|
||||||
_sleep $_sleep_retry_sec
|
_sleep $_sleep_retry_sec
|
||||||
@ -1979,11 +1979,11 @@ _get() {
|
|||||||
[ "$_http_retry_times" = "$_HTTP_MAX_RETRY" ]
|
[ "$_http_retry_times" = "$_HTTP_MAX_RETRY" ]
|
||||||
_lastHCode="$?"
|
_lastHCode="$?"
|
||||||
_debug "Retrying GET"
|
_debug "Retrying GET"
|
||||||
_get_impl "$url" "$onlyheader" "$t" "$_lastHCode";
|
_get_impl "$url" "$onlyheader" "$t" "$_lastHCode"
|
||||||
_hcode="$?"
|
_hcode="$?"
|
||||||
_debug _hcode "$_hcode"
|
_debug _hcode "$_hcode"
|
||||||
if [ "$_hcode" = "0" ]; then
|
if [ "$_hcode" = "0" ]; then
|
||||||
break;
|
break
|
||||||
fi
|
fi
|
||||||
_http_retry_times=$(_math $_http_retry_times + 1)
|
_http_retry_times=$(_math $_http_retry_times + 1)
|
||||||
_sleep $_sleep_retry_sec
|
_sleep $_sleep_retry_sec
|
||||||
|
Loading…
Reference in New Issue
Block a user