Sfoglia il codice sorgente

Merge pull request #19191 from overleaf/em-history-body-limit

Increase the request body limit for history

GitOrigin-RevId: b4b30b005a99ef6a60983333c4babd7ec5caa3f2
Eric Mc Sween 2 anni fa
parent
commit
9e5223ac6b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      services/history-v1/app.js

+ 1 - 1
services/history-v1/app.js

@@ -34,7 +34,7 @@ Metrics.leaked_sockets.monitor(logger)
 // We may have fairly large JSON bodies when receiving large Changes. Clients
 // We may have fairly large JSON bodies when receiving large Changes. Clients
 // may have to handle 413 status codes and try creating files instead of sending
 // may have to handle 413 status codes and try creating files instead of sending
 // text content in changes.
 // text content in changes.
-app.use(bodyParser.json({ limit: '4MB' }))
+app.use(bodyParser.json({ limit: '6MB' }))
 app.use(
 app.use(
   bodyParser.urlencoded({
   bodyParser.urlencoded({
     extended: false,
     extended: false,