mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(federation): 🐛 Force add content-type http header
This commit is contained in:
parent
5162000a1f
commit
92a80d97c2
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue