jenkins-bot has submitted this change and it was merged.
Change subject: Stop setting the form data to rawBody
......................................................................
Stop setting the form data to rawBody
This was a hack to continue support Content Translation extension setting
the data to translate directly to form data.
That was changed in I32d27fb4c9e8c55948
Change-Id: Id80baf1581af38f5c157b21dd1f5cb63e173c831
---
M app.js
1 file changed, 1 insertion(+), 7 deletions(-)
Approvals:
Nikerabbit: Checked; Looks good to me, approved
jenkins-bot: Verified
diff --git a/app.js b/app.js
index ebf1070..d9d2594 100644
--- a/app.js
+++ b/app.js
@@ -113,13 +113,7 @@
} ) );
// use the application/x-www-form-urlencoded parser
app.use( bodyParser.urlencoded( {
- extended: true,
- verify: function ( req, res, buf ) {
- // Get the formdata buffer to rawBody.
- // TODO: This is a hack. Remove this after CX MT tool
start sending html
- // in formdata than the whole html as form data.
- req.rawBody = buf.toString();
- }
+ extended: true
} ) );
// use the JSON body parser
app.use( bodyParser.json( {
--
To view, visit https://gerrit.wikimedia.org/r/264714
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id80baf1581af38f5c157b21dd1f5cb63e173c831
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/cxserver
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: KartikMistry <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits