Cscott has uploaded a new change for review.
https://gerrit.wikimedia.org/r/167647
Change subject: Tweak outdated comment.
......................................................................
Tweak outdated comment.
Follow-up to Ia6cee966067bb53bda65a0c460fa602ce08f141d.
Change-Id: I5f862db085863889fc5367c2173ad53f16df64e5
---
M api/routes.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid
refs/changes/47/167647/1
diff --git a/api/routes.js b/api/routes.js
index c6b002d..eb6e873 100644
--- a/api/routes.js
+++ b/api/routes.js
@@ -248,7 +248,6 @@
// Don't cache requests when wt is set in case
somebody uses
// GET for wikitext parsing
apiUtils.setHeader(res, env, 'Cache-Control',
'private,no-cache,s-maxage=0');
- // "body" flag to return just the body
resolve( doc );
});
parser.processToplevelDoc( wt );
@@ -324,6 +323,7 @@
res.local('iwp', req.params[0] || parsoidConfig.defaultWiki || '');
res.local('pageName', req.params[1] || '');
res.local('oldid', req.query.oldid || null);
+ // "body" flag to return just the body (instead of the entire HTML doc)
res.local('body', req.query.body || req.body.body);
next();
};
--
To view, visit https://gerrit.wikimedia.org/r/167647
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f862db085863889fc5367c2173ad53f16df64e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits