From cd7f0f71581abc8366c143d5cc619d2ea1700861 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Feb 2023 11:06:03 +0800 Subject: [PATCH] =?UTF-8?q?node=E6=9C=8D=E5=8A=A1body=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E5=80=BC=E8=B0=83=E6=95=B4=E4=B8=BA50mb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b8f1c2f..ebc03bc 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ chalk.level = 1 app.listen(port, () => { db.init() app.use(express.json()) // for parsing application/json - app.use(express.urlencoded({extended: true})) // for parsing application/x-www-form-urlencoded + app.use(express.urlencoded({extended: true, limit: '50mb'})) // for parsing application/x-www-form-urlencoded Promise.all([rest.init(app), ws.init(app)]).then(() => { log(`${chalk.bgGreen.black(" DONE ")} serve is listening on ${port}`) })