lix/src
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
..
asan-options tree-wide: add support for asan! 2024-07-31 14:13:39 -07:00
build-remote tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
libcmd Merge "Remove readline support" into main 2024-09-17 16:36:34 +00:00
libexpr repl-overlays: Provide an elaborate example 2024-09-01 15:30:58 -07:00
libfetchers fix(libfetchers): set GitHub API version header, closes #255 2024-10-30 18:40:13 +01:00
libmain fish-completion: leave the shell prompt intact 2024-09-11 19:03:11 +02:00
libstore Merge "local-store: make extended attribute handling more robust" into main 2024-09-21 07:55:13 +00:00
libutil util: fix brotli decompression of empty input 2024-09-18 15:37:29 -07:00
lix-doc rowan: 0.15.15 -> 0.15.16 2024-08-26 11:34:43 -07:00
nix path-info: wipe the progress bar before printing 2024-09-18 19:26:40 +02:00
nix-build tree-wide: unify progress bar inactive and paused states 2024-07-01 18:19:34 +02:00
nix-channel util.{hh,cc}: Split out users.{hh,cc} 2024-05-29 11:01:34 +02:00
nix-collect-garbage Fix dry-run flag for nix-collect-garbage 2024-07-09 13:55:05 +00:00
nix-copy-closure
nix-env fix: check if it is a Real terminal, not just if it is a terminal 2024-08-10 16:07:21 -07:00
nix-instantiate libexpr: pass Exprs as references, not pointers 2024-06-17 19:46:44 +00:00
nix-store tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
pch tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
lix-base.pc.in packaging: rename nixexpr -> lixexpr and so on 2024-05-23 16:45:23 -06:00
meson.build lix-doc: move under src/ 2024-08-20 13:38:46 -06:00