Skip to content

Commit

Permalink
fix #4530
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Mar 2, 2023
1 parent 982c54b commit cb8b341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2229,8 +2229,8 @@ _send_signed_request() {
_debug3 _body "$_body"
fi

if [ "$code" = '503' ]; then
_retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *:" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
_retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *:" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
if [ "$code" = '503' ] || [ "$_retryafter" ]; then
_sleep_overload_retry_sec=$_retryafter
if [ -z "$_sleep_overload_retry_sec" ]; then
_sleep_overload_retry_sec=5
Expand Down

0 comments on commit cb8b341

Please sign in to comment.