Gergely Nagy
cd17eb0fa7
activitypub: Sign the Host header too
...
Mastodon with `AUTHORIZED_FETCH` enabled requires the `Host` header to
be signed too, add it to the default for `setting.Federation.GetHeaders`
and `setting.Federation.PostHeaders`.
For this to work, we need to sign the request later: not immediately
after `NewRequest`, but just before sending them out with `client.Do`.
Doing so also lets us use `setting.Federation.GetHeaders` (we were using
`.PostHeaders` even for GET requests before).
Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu >
2024-08-04 23:57:48 +02:00
..
2024-07-30 19:41:10 +00:00
2024-08-04 23:57:48 +02:00
2023-08-07 15:00:53 -04:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-04-16 11:49:44 +02:00
2024-07-30 19:41:10 +00:00
2023-06-29 16:29:48 +00:00
2023-10-14 08:37:24 +00:00
2024-05-29 18:31:06 +02:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-05-09 13:49:37 +00:00
2024-03-11 23:36:59 +07:00
2024-07-30 19:41:10 +00:00
2023-01-29 09:49:51 -06:00
2024-07-30 19:41:10 +00:00
2023-10-18 09:44:36 +00:00
2023-08-05 04:34:59 +00:00
2024-02-05 16:02:14 +01:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-22 15:44:13 +02:00
2023-07-04 18:36:08 +00:00
2023-04-10 16:44:02 +08:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-31 18:48:46 +00:00
2022-11-27 18:20:29 +00:00
2024-06-02 09:42:39 +02:00
2024-07-30 19:41:10 +00:00
2024-04-21 21:26:15 +05:00
2024-07-30 19:41:10 +00:00
2023-04-12 18:16:45 +08:00
2024-08-04 06:16:29 +00:00
2023-04-22 17:56:27 -04:00
2022-11-27 18:20:29 +00:00
2024-07-02 21:39:01 +02:00
2024-05-09 13:49:37 +00:00
2023-02-11 08:39:50 +08:00
2022-11-27 18:20:29 +00:00
2023-12-25 20:13:18 +08:00
2024-07-30 19:41:10 +00:00
2022-11-27 18:20:29 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-04-21 16:28:16 +02:00
2024-08-04 23:57:48 +02:00
2024-07-30 19:41:10 +00:00
2023-11-03 15:21:05 +00:00
2024-07-30 19:41:10 +00:00
2024-08-02 11:10:34 +02:00
2023-08-05 04:34:59 +00:00
2022-11-27 18:20:29 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-06-02 15:24:06 +02:00
2024-05-09 13:49:37 +00:00
2024-03-20 08:46:30 +01:00
2024-07-30 19:41:10 +00:00
2023-02-05 15:29:03 +08:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-30 19:41:10 +00:00
2024-07-17 23:07:41 +02:00
2024-07-30 19:41:10 +00:00
2024-05-14 08:31:34 +02:00
2024-07-30 19:41:10 +00:00
2024-06-28 05:17:11 +00:00