From 0f00853a6786784d9d9fc2cdfea5033aff5ca89c Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Mon, 29 Jul 2024 13:55:58 +0200 Subject: [PATCH] fix(http): allow `retry-after: 0` (#30451) --- lib/util/http/retry-after.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/http/retry-after.ts b/lib/util/http/retry-after.ts index 6cde4ae33a..ced46c5b00 100644 --- a/lib/util/http/retry-after.ts +++ b/lib/util/http/retry-after.ts @@ -103,7 +103,7 @@ export function getRetryAfter(err: unknown): number | null { } const seconds = parseInt(retryAfter, 10); - if (!Number.isNaN(seconds) && seconds > 0) { + if (!Number.isNaN(seconds) && seconds >= 0) { return seconds; } -- GitLab