Sebastian Poxhofer
853290db9c
refactor(http): read platform families instead of the host type aliases ( #46347 )
...
`lib/util/http/auth.ts` and `lib/util/http/host-rules.ts` were the last
readers of the `*_API_USING_HOST_TYPES` constants, which the previous
commits left as aliases of `PLATFORM_FAMILIES`. Both now read the table
directly and the aliases are deleted, so each family's host types are
declared in exactly one place.
Also covers the `forgejo` fallback in `findMatchingRule()`, which had no
test: the shared setup only registers a `gitea` host rule, so the
forgejo branch was never entered.
Behaviour changes: none. The aliases pointed at the same arrays.
2026-09-21 15:27:53 +00:00
..
2026-09-21 07:29:50 +00:00
2026-09-14 20:33:10 +00:00
2026-09-10 10:28:39 +00:00
2026-09-18 10:28:42 +00:00
2026-08-25 23:02:27 +00:00
2026-09-21 15:27:53 +00:00
2026-08-26 13:02:26 +00:00
2026-09-10 10:28:39 +00:00
2026-09-18 15:59:57 +00:00
2026-08-13 14:22:03 +00:00
2026-09-16 13:27:56 +00:00
2026-05-14 06:05:17 +00:00
2026-01-26 22:48:17 +00:00
2025-11-10 12:00:35 +00:00
2026-01-26 22:48:17 +00:00
2025-11-10 12:00:35 +00:00
2026-07-19 10:36:12 +00:00
2026-01-26 22:48:17 +00:00
2026-07-14 12:28:52 +00:00
2026-01-26 22:48:17 +00:00
2026-01-26 22:48:17 +00:00
2023-11-07 15:50:29 +00:00
2026-09-21 15:27:50 +00:00
2026-09-21 15:27:50 +00:00
2026-06-15 06:50:29 +00:00
2026-06-15 06:50:29 +00:00
2026-01-26 22:48:17 +00:00
2026-08-13 14:22:03 +00:00
2026-07-19 11:14:22 +00:00
2026-08-14 14:30:46 +00:00
2026-08-28 09:26:20 +00:00
2026-08-28 09:27:59 +00:00
2026-01-26 22:48:17 +00:00
2025-11-10 12:00:35 +00:00
2026-06-01 09:03:25 +00:00
2026-08-26 10:48:40 +00:00
2026-05-29 06:55:58 +00:00
2026-05-29 06:55:58 +00:00
2026-09-18 10:53:12 +00:00
2026-09-18 10:53:12 +00:00
2026-01-26 22:48:17 +00:00
2026-08-26 10:48:40 +00:00
2026-01-26 22:48:17 +00:00
2026-09-03 09:54:40 +00:00
2026-01-26 22:48:17 +00:00
2026-07-16 06:53:37 +00:00
2026-03-11 10:38:51 +00:00
2026-03-11 10:38:51 +00:00
2026-07-07 17:47:04 +00:00
2026-01-27 11:16:26 +00:00
2026-09-01 09:41:53 +00:00
2026-09-03 09:54:40 +00:00
2026-01-26 22:48:17 +00:00
2026-05-29 06:55:58 +00:00
2026-07-19 11:14:22 +00:00
2022-05-01 06:00:55 +02:00
2026-09-10 07:28:12 +00:00
2024-08-19 13:15:27 +00:00
2026-09-17 07:08:00 +00:00
2026-09-17 07:08:00 +00:00
2026-07-25 16:00:44 +00:00
2026-04-07 15:36:16 +00:00
2026-02-17 20:27:11 +00:00
2026-01-26 22:48:17 +00:00
2026-08-14 14:30:46 +00:00
2026-01-26 22:48:17 +00:00
2026-08-13 14:22:03 +00:00
2026-01-26 22:48:17 +00:00
2026-09-03 09:54:40 +00:00
2026-01-26 22:48:17 +00:00
2026-01-26 22:48:17 +00:00
2026-01-26 22:48:17 +00:00
2023-11-07 15:50:29 +00:00
2026-01-29 14:21:41 +00:00
2026-09-03 09:54:40 +00:00
2026-09-04 10:40:46 +00:00
2026-09-09 13:50:03 +00:00
2026-09-07 14:04:08 +00:00
2026-09-07 14:04:08 +00:00
2026-01-26 22:48:17 +00:00
2023-06-27 08:27:19 +00:00
2026-01-26 22:48:17 +00:00
2026-08-06 15:15:54 +00:00
2026-01-26 22:48:17 +00:00
2026-01-26 22:48:17 +00:00
2026-07-11 15:08:11 +00:00
2026-08-28 09:27:59 +00:00
2026-01-26 22:48:17 +00:00
2023-11-07 15:50:29 +00:00
2026-01-26 22:48:17 +00:00
2026-08-14 14:30:46 +00:00
2026-07-14 12:28:52 +00:00
2025-04-14 06:33:33 +00:00
2022-09-04 10:53:20 +00:00
2026-07-14 12:28:52 +00:00
2026-08-13 14:22:03 +00:00
2026-09-14 15:57:22 +00:00
2026-09-14 15:57:22 +00:00
2026-02-25 08:36:16 +00:00
2026-02-25 08:36:16 +00:00
2026-07-19 11:14:22 +00:00
2023-11-07 15:50:29 +00:00
2026-09-18 10:53:12 +00:00
2026-09-18 10:53:12 +00:00
2026-07-07 17:47:04 +00:00
2026-09-09 13:55:14 +00:00