summary refs log tree commit diff
diff options
context:
space:
mode:
authorconner <59223342+Intevel@users.noreply.github.com>2021-09-09 16:41:38 +0200
committerGitHub <noreply@github.com>2021-09-09 16:41:38 +0200
commitfaa9fcab35edae063fbba1fd728d6b00aa41f949 (patch)
tree0513f5476a9709069d4616fd4bdf48a53ec34fc2
parentMerge pull request #344 from AlTech98/master (diff)
parentRevert "Increased CDN max upload to 10mb, fix #318" (diff)
downloadserver-faa9fcab35edae063fbba1fd728d6b00aa41f949.tar.xz
Merge pull request #345 from fosscord/revert-344-master
Revert "Increased CDN max upload to 10mb, fix #318"
-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/"));