Skip to content

Commit

Permalink
fix: etag empty body (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Feb 8, 2024
1 parent a236030 commit 5e1866d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Unleash/Communication/UnleashApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private async Task<FetchTogglesResult> HandleSuccessResponse(HttpResponseMessage
featureRequestsToSkip = Math.Max(0, featureRequestsToSkip - 1);

var newEtag = response.Headers.ETag?.Tag;
if (newEtag == etag)
if (newEtag == etag || response.StatusCode == HttpStatusCode.NotModified)
{
return new FetchTogglesResult
{
Expand Down

0 comments on commit 5e1866d

Please sign in to comment.