lix/doc/manual/rl-next
Kiara Grouwstra a778b0f85a fix(libfetchers): set GitHub API version header, closes #255
Sets the `X-GitHub-Api-Version` header to `2022-11-28` for calls to the
GitHub API.
This follows the later version as per
https://docs.github.com/en/rest/about-the-rest-api/api-versions?apiVersion=2022-11-28.

This affected the check on whether to use the API versus unauthenticated
calls as well, given the headers would no longer be empty if the
authentication token were missing.
The workaround used here is to use a check similar to an existing
check for the token.

In the current implementation, headers are (still) similarly sent to
non-authenticated as well as GitHub on-prem calls.
For what it's worth, manual curl calls with such a header seemed to
break nor unauthenticated calls nor ones to the github.com API.

Change-Id: I6e10839e6b99cb65eb451e923b2a64f5d3c0f578
2024-10-30 18:40:13 +01:00
..
.gitkeep release: release notes for 2.90.0 2024-06-15 18:46:18 -07:00
allowsubstitutes-errors.md fix: good errors for failures caused by allowSubstitutes 2024-08-23 17:49:15 -07:00
alt-left-and-alt-right-in-repl.md repl: Patch editline to recognize Meta-Left & Meta-Right 2024-09-09 15:34:50 -07:00
deprecated-features.md libexpr: Soft-deprecate ancient let syntax 2024-08-21 12:59:03 +02:00
http-proxy-for-s3.md fix: use http proxy for s3 access 2024-08-23 13:23:33 -07:00
readline-support-removed.md Remove readline support 2024-09-16 10:48:20 -07:00
relative-and-tilde-paths-in-config.md Support relative and ~/ paths in config settings 2024-08-25 15:54:22 -07:00
x-github-api-header.md fix(libfetchers): set GitHub API version header, closes #255 2024-10-30 18:40:13 +01:00