Skip to content

Commit

Permalink
feat: added block version no if present to response headers
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop-zengenti committed Jul 30, 2024
1 parent 0ed6755 commit 00ed257
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private void CheckAndSetBlockHeaders(Headers headers, BlockVersionInfo blockVers

if (blockVersionInfo.VersionNo != null)
{
CallContext.Current[Constants.Headers.BlockVersionNo] = blockVersionInfo.VersionNo.ToString();
CallContext.Current[Constants.Headers.RequiresVersionNo] = blockVersionInfo.VersionNo.ToString();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public static class Headers
public const string EntryVersionStatus = "x-entry-versionstatus";
public const string HealthCheck = "x-healthcheck";
public const string HidePreviewToolbar = "x-hide-preview-toolbar";
public const string BlockVersionNo = "x-version-no";

public const string ProxyForwardedFor = "x-forwarded-for";
public const string ProxyForwardedProto = "x-forwarded-proto";
Expand All @@ -38,7 +37,7 @@ public static class Headers
public const string RequiresEntryId = "x-requires-entry-id";
public const string RequiresEntryLanguage = "x-requires-entry-language";
public const string RequiresBlockId = "x-requires-block-id";

public const string RequiresVersionNo = "x-requires-version-no";
// TODO: remove when we deprecate old nodes delivery api
public const string UseNewNodeService = "x-use-new-node-service";

Expand Down Expand Up @@ -76,7 +75,8 @@ public static class Headers
RequiresNodeId,
RequiresEntryId,
RequiresEntryLanguage,
RequiresBlockId
RequiresBlockId,
RequiresVersionNo
};
}

Expand Down

0 comments on commit 00ed257

Please sign in to comment.