Skip to content

Commit daa7b22

Browse files
committed
fix: increase req.body
1 parent 6caca38 commit daa7b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/app.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ app.set('view engine', 'pug')
2626
app.use(helmet())
2727
app.use(cors())
2828
app.use(logger('combined', { stream: winstonStream }))
29-
app.use(bodyParser.json())
29+
app.use(bodyParser.json({ limit: '100mb', type: 'application/json' }))
3030
app.use(bodyParser.urlencoded({ extended: false }))
3131
app.use(cookieParser())
3232
app.use(express.static(path.join(`${__dirname}/../`, 'public')))

0 commit comments

Comments
 (0)