We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fe06ad + 70f4cad commit bf00d31Copy full SHA for bf00d31
acme.sh
@@ -2229,8 +2229,8 @@ _send_signed_request() {
2229
_debug3 _body "$_body"
2230
fi
2231
2232
- _retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *:" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
2233
- if [ "$code" = '503' ] || [ "$_retryafter" ]; then
+ _retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *: *[0-9]\+ *" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
+ if [ "$code" = '503' ]; then
2234
_sleep_overload_retry_sec=$_retryafter
2235
if [ -z "$_sleep_overload_retry_sec" ]; then
2236
_sleep_overload_retry_sec=5
0 commit comments