Skip to content

Commit

Permalink
Update Http.cs (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSpirit authored Aug 1, 2024
1 parent bf5cc12 commit e6feb1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/code/common/Http.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ private static bool ShouldRetryInner(HttpMessage message, Exception? exception)
{
({ Response.Status: 422 or 409 }, _) when HasManagementApiRequestFailedError(message.Response) => true,
({ Response.Status: 412 }, _) => true,
({ Response.Status: 429 }, _) => true,
_ => false
};
}
Expand Down Expand Up @@ -430,4 +431,4 @@ public override async ValueTask ProcessAsync(HttpMessage message, ReadOnlyMemory

await ProcessNextAsync(message, pipeline);
}
}
}

0 comments on commit e6feb1e

Please sign in to comment.