summary refs log tree commit diff
path: root/cdn/src
diff options
context:
space:
mode:
authorconner <59223342+Intevel@users.noreply.github.com>2021-09-09 16:40:47 +0200
committerGitHub <noreply@github.com>2021-09-09 16:40:47 +0200
commitc505e3dda4588b4aaf5c353b112aba88aaae0520 (patch)
treea20976687ecef0cbce2bf651af4dc468e7ba199c /cdn/src
parentMerge pull request #344 from AlTech98/master (diff)
downloadserver-c505e3dda4588b4aaf5c353b112aba88aaae0520.tar.xz
Revert "Increased CDN max upload to 10mb, fix #318"
Diffstat (limited to 'cdn/src')
-rw-r--r--cdn/src/Server.ts2
1 files changed, 0 insertions, 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/"));