Skip to content

Commit

Permalink
fix(http): allow retry-after: 0 (#30451)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Jul 29, 2024
1 parent 36c31a1 commit 0f00853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/http/retry-after.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0f00853

Please sign in to comment.