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
commit2f3e895efb2c1791f693d871dc6c758d027b3dd2 (patch)
tree0513f5476a9709069d4616fd4bdf48a53ec34fc2 /cdn/src
parentMerge pull request #344 from AlTech98/master (diff)
downloadserver-2f3e895efb2c1791f693d871dc6c758d027b3dd2.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/"));