mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
fix(federation): 🐛 Always set content-type to JSON if there is a body
This commit is contained in:
parent
8f7b2d7bfe
commit
5b119949dc
|
|
@ -177,11 +177,7 @@ export class FederationRequester {
|
|||
: extra?.headers),
|
||||
});
|
||||
|
||||
if (
|
||||
body &&
|
||||
!(body instanceof FormData) &&
|
||||
!headers.has("Content-Type")
|
||||
) {
|
||||
if (body) {
|
||||
headers.set("Content-Type", "application/json; charset=utf-8");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue