jenkins-bot has submitted this change and it was merged.
Change subject: Add ?redirect=false param to RESTBase content requests
......................................................................
Add ?redirect=false param to RESTBase content requests
To assist the services team in testing redirect handling in RESTBase.
Change-Id: I7f8f130ef08acea2b48f731f66b1777407938137
---
M lib/parsoid-access.js
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
BearND: Looks good to me, approved
GWicke: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/lib/parsoid-access.js b/lib/parsoid-access.js
index 948a4fd..eaac991 100644
--- a/lib/parsoid-access.js
+++ b/lib/parsoid-access.js
@@ -80,6 +80,10 @@
request: req
});
+ /* Add redirect=false query to assist services team in testing redirect
+ handling in RESTBase. TODO: remove when no longer needed. */
+ request.query = { redirect: 'false' };
+
if (!opts && revision && revision.constructor === Object) {
opts = revision;
revision = undefined;
--
To view, visit https://gerrit.wikimedia.org/r/281989
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7f8f130ef08acea2b48f731f66b1777407938137
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Dbrant <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits