mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
change default content type
This commit is contained in:
parent
0bc905a222
commit
4bab9117a0
@ -51,6 +51,14 @@ export class FederationServer extends Server {
|
||||
// TODO: auth
|
||||
// TODO: rate limits
|
||||
|
||||
this.app.use("*", (req, res, next) => {
|
||||
res.setHeader(
|
||||
"Content-Type",
|
||||
"application/activity+json; charset=utf-8",
|
||||
);
|
||||
next();
|
||||
});
|
||||
|
||||
this.routes = await registerRoutes(
|
||||
this,
|
||||
path.join(__dirname, "routes", "/"),
|
||||
|
Loading…
Reference in New Issue
Block a user