GWicke has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/61806


Change subject: Finally a proper fix to the POST size limit issue
......................................................................

Finally a proper fix to the POST size limit issue

The documentation was misleading as usual. Following the source through a few
layers helped though. This fixes the issue in local testing.

Change-Id: I1b3c3e9e8c686d66594f4673d8341e8630eefbac
---
M js/api/ParserService.js
1 file changed, 2 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/06/61806/1

diff --git a/js/api/ParserService.js b/js/api/ParserService.js
index 8189290..f4f547a 100644
--- a/js/api/ParserService.js
+++ b/js/api/ParserService.js
@@ -289,10 +289,8 @@
 /* -------------------- web app access points below --------------------- */
 
 var app = express.createServer();
-// Increase the POST size limit from the 2M default. Do this before the
-// bodyParser is initialized.
-app.use(express.limit('15mb'));
-app.use(express.bodyParser());
+// Increase the form field size limit from the 2M default.
+app.use(express.bodyParser({maxFieldsSize: 15 * 1024 * 1024}));
 
 app.get('/', function(req, res){
        res.write('<html><body>\n');

-- 
To view, visit https://gerrit.wikimedia.org/r/61806
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b3c3e9e8c686d66594f4673d8341e8630eefbac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to