Mobrovac has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/328375 )

Change subject: Use mwApiServer as the provider of the full URI of the MW API
......................................................................

Use mwApiServer as the provider of the full URI of the MW API

Change-Id: I6b66fd33c02944d86c69c8c63a7009ac9f1b148c
---
M lib/mw/ApiRequest.js
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid 
refs/changes/75/328375/1

diff --git a/lib/mw/ApiRequest.js b/lib/mw/ApiRequest.js
index fcafafa..2e709ac 100644
--- a/lib/mw/ApiRequest.js
+++ b/lib/mw/ApiRequest.js
@@ -303,8 +303,7 @@
        if (mwApiServer) {
                var urlobj = url.parse(options.uri);
                options.headers.Host = urlobj.hostname;
-               urlobj.host = mwApiServer;
-               options.uri = url.format(urlobj);
+               options.uri = mwApiServer;
        }
 
        // Proxy options should only be applied to MW API endpoints.

-- 
To view, visit https://gerrit.wikimedia.org/r/328375
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b66fd33c02944d86c69c8c63a7009ac9f1b148c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Mobrovac <mobro...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to