From 2f3e895efb2c1791f693d871dc6c758d027b3dd2 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: Revert "Increased CDN max upload to 10mb, fix #318" --- cdn/src/Server.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'cdn/src') 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/")); -- cgit 1.5.1