Skip to content

Commit 40a1521

Browse files
authored
Edit GHAE version for API header example (#17056)
1 parent 9b13230 commit 40a1521

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

content/rest/overview/resources-in-the-rest-api.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ $ curl -i {% data variables.product.api_url_pre %}/users/octocat/orgs
4242
> X-GitHub-Media-Type: github.v3
4343
> X-RateLimit-Limit: 5000
4444
> X-RateLimit-Remaining: 4987
45-
> X-RateLimit-Reset: 1350085394{% if currentVersion == "github-ae@latest" or enterpriseServerVersions contains currentVersion %}
46-
> X-GitHub-Enterprise-Version: {{ currentVersion }}.0{% endif %}
45+
> X-RateLimit-Reset: 1350085394{% if enterpriseServerVersions contains currentVersion %}
46+
> X-GitHub-Enterprise-Version: {{ currentVersion | remove: "enterprise-server@" }}.0{% elsif currentVersion == "github-ae@latest" %}
47+
> X-GitHub-Enterprise-Version: GitHub AE{% endif %}
4748
> Content-Length: 5
4849
> Cache-Control: max-age=0, private, must-revalidate
4950
> X-Content-Type-Options: nosniff

0 commit comments

Comments
 (0)