GWicke has submitted this change and it was merged.
Change subject: Bug 47890: Finally a proper fix to the POST size limit issue
......................................................................
Bug 47890: 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(+), 1 deletion(-)
Approvals:
MarkTraceur: Looks good to me, approved
GWicke: Verified; Looks good to me, approved
diff --git a/js/api/ParserService.js b/js/api/ParserService.js
index 3a1ab9e..9c3010e 100644
--- a/js/api/ParserService.js
+++ b/js/api/ParserService.js
@@ -289,7 +289,8 @@
/* -------------------- web app access points below --------------------- */
var app = express.createServer();
-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: merged
Gerrit-Change-Id: I1b3c3e9e8c686d66594f4673d8341e8630eefbac
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits