diff --git a/src/Server.ts b/src/Server.ts index 0ff4df8c..50110bec 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -68,7 +68,7 @@ export class FosscordServer extends Server { this.app.use(GlobalRateLimit); this.app.use(Authentication); this.app.use(CORS); - this.app.use(BodyParser({ inflate: true })); + this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 2 })); const languages = await fs.readdir(path.join(__dirname, "..", "locales")); const namespaces = await fs.readdir(path.join(__dirname, "..", "locales", "en")); const ns = namespaces.filter((x) => x.endsWith(".json")).map((x) => x.slice(0, x.length - 5));