Physikerwelt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/271046
Change subject: Put the mathoid-style headers to the complete endpoint response
as well
......................................................................
Put the mathoid-style headers to the complete endpoint response as well
Change-Id: Iee4cb549ec1b2fd539de4fb0bcaa5aaff9760df5
---
M routes/mathoid.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mathoid
refs/changes/46/271046/1
diff --git a/routes/mathoid.js b/routes/mathoid.js
index 9082237..aa93fa4 100644
--- a/routes/mathoid.js
+++ b/routes/mathoid.js
@@ -115,7 +115,7 @@
res.json(data).end();
break;
case 'complete':
- Object.keys(outHeaders).forEach(function (outType) {
+ Object.keys(Object.assign(outHeaders,{mml:{'x-mathoid-style':
data.mathoidStyle}})).forEach(function (outType) {
if (data[outType]) {
data[outType] = {
headers: outHeaders[outType],
--
To view, visit https://gerrit.wikimedia.org/r/271046
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iee4cb549ec1b2fd539de4fb0bcaa5aaff9760df5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mathoid
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits