From c505e3dda4588b4aaf5c353b112aba88aaae0520 Mon Sep 17 00:00:00 2001 From: conner <59223342+Intevel@users.noreply.github.com> Date: Thu, 9 Sep 2021 16:40:47 +0200 Subject: [PATCH] Revert "Increased CDN max upload to 10mb, fix #318" --- cdn/src/Server.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/cdn/src/Server.ts b/cdn/src/Server.ts index 5c4a8ae5..f4a6b576 100644 --- a/cdn/src/Server.ts +++ b/cdn/src/Server.ts @@ -2,7 +2,6 @@ import { Server, ServerOptions } from "lambert-server"; import { Config, initDatabase } from "@fosscord/util"; import path from "path"; import avatarsRoute from "./routes/avatars"; -import bodyParser from "body-parser"; export interface CDNServerOptions extends ServerOptions {} @@ -27,7 +26,6 @@ export class CDNServer extends Server { res.set("Access-Control-Allow-Methods", req.header("Access-Control-Request-Methods") || "*"); next(); }); - this.app.use(bodyParser.json({ inflate: true, limit: "10mb" })); await this.registerRoutes(path.join(__dirname, "routes/"));