mirror of
https://github.com/mempool/mempool.git
synced 2025-02-21 22:11:51 +01:00
set content limit to 10mb
This commit is contained in:
parent
bb5b771128
commit
a664f0c230
1 changed files with 3 additions and 3 deletions
|
@ -133,9 +133,9 @@ class Server {
|
|||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
next();
|
||||
})
|
||||
.use(express.urlencoded({ extended: true }))
|
||||
.use(express.text({ type: ['text/plain', 'application/base64'] }))
|
||||
.use(express.json())
|
||||
.use(express.urlencoded({ extended: true, limit: '10mb' }))
|
||||
.use(express.text({ type: ['text/plain', 'application/base64'], limit: '10mb' }))
|
||||
.use(express.json({ limit: '10mb' }))
|
||||
;
|
||||
|
||||
if (config.DATABASE.ENABLED && config.FIAT_PRICE.ENABLED) {
|
||||
|
|
Loading…
Add table
Reference in a new issue