fix(federation): 🐛 Force add content-type http header

This commit is contained in:
Jesse Wierzbinski 2024-07-26 20:35:26 +02:00
parent 5162000a1f
commit 92a80d97c2
No known key found for this signature in database

View file

@ -716,7 +716,10 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
{ {
// @ts-expect-error Bun extension // @ts-expect-error Bun extension
proxy: config.http.proxy.address, proxy: config.http.proxy.address,
headers: headers.toJSON(), headers: {
...headers.toJSON(),
"Content-Type": "application/json; charset=utf-8",
},
}, },
); );
} catch (e) { } catch (e) {