Explorar el Código

Fix: Increase maximum payload to 1mb

NGPixel hace 8 años
padre
commit
fe029ef67d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      server/index.js

+ 2 - 2
server/index.js

@@ -143,8 +143,8 @@ app.use(i18nextMw.handle(lang))
 app.set('views', path.join(SERVERPATH, 'views'))
 app.set('view engine', 'pug')
 
-app.use(bodyParser.json())
-app.use(bodyParser.urlencoded({ extended: false }))
+app.use(bodyParser.json({ limit: '1mb' }))
+app.use(bodyParser.urlencoded({ extended: false, limit: '1mb' }))
 
 // ----------------------------------------
 // View accessible data