Files
gitocean/modules/setting
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
..
2023-12-19 09:29:05 +00:00
2024-06-16 13:42:58 +02:00
2023-12-25 20:13:18 +08:00
2023-07-04 18:36:08 +00:00
2024-02-19 20:49:37 +01:00
2023-06-18 16:10:44 +00:00
2023-10-10 18:47:49 +08:00
2024-06-07 17:12:48 +00:00
2024-06-07 17:12:48 +00:00
2024-06-16 13:42:58 +02:00
2023-02-20 16:18:26 -06:00
2024-03-27 22:26:55 +01:00