fix(body size): Increasing POST body size allowed

This commit is contained in:
Chris Troutner
2022-06-10 06:46:16 -07:00
parent 767a0fd38b
commit 0d00d340cf
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -90,8 +90,8 @@ const logStream = {
}
app.use(logger(morganFormat, { stream: logStream }))
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json({ limit: '50mb' }))
app.use(bodyParser.urlencoded({ extended: false, limit: '50mb' }))
app.use(cookieParser())
app.use(express.static(path.join(__dirname, 'public')))
+1 -2
View File
@@ -14,8 +14,7 @@ const RouteUtils = require('../../util/route-utils')
const config = require('../../../config')
const routeUtils = new RouteUtils()
const bchjs = new BCHJS({restURL: config.restURL})
const bchjs = new BCHJS({ restURL: config.restURL })
let _this