Skip to content

Commit

Permalink
check etag on 200 for sentinel key (#607)
Browse files Browse the repository at this point in the history
Co-authored-by: Sami Sadfa <[email protected]>
  • Loading branch information
samsadsam and SamSadfa authored Oct 28, 2024
1 parent 7528888 commit f7ec121
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public static async Task<KeyValueChange> GetKeyValueChange(this ConfigurationCli
try
{
Response<ConfigurationSetting> response = await client.GetConfigurationSettingAsync(setting, onlyIfChanged: true, cancellationToken).ConfigureAwait(false);
if (response.GetRawResponse().Status == (int)HttpStatusCode.OK)
if (response.GetRawResponse().Status == (int)HttpStatusCode.OK &&
!response.Value.ETag.Equals(setting.ETag))
{
return new KeyValueChange
{
Expand Down

0 comments on commit f7ec121

Please sign in to comment.