Merge "Update VE to request Parsoid HTML v1.7.0"

This commit is contained in:
jenkins-bot 2018-06-21 22:31:25 +00:00 committed by Gerrit Code Review
commit fbb83cc391
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ class ApiVisualEditor extends ApiBase {
$request['body'] = $params;
}
// Should be synchronised with modules/ve-mw/init/ve.init.mw.ArticleTargetLoader.js
$reqheaders['Accept'] = 'text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.6.0"';
$reqheaders['Accept'] = 'text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.7.0"';
$reqheaders['User-Agent'] = 'VisualEditor-MediaWiki/' . $wgVersion;
$reqheaders['Api-User-Agent'] = 'VisualEditor-MediaWiki/' . $wgVersion;
$request['headers'] = $reqheaders;

View file

@ -238,7 +238,7 @@
// Should be synchronised with ApiVisualEditor.php
headers = {
Accept: 'text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.6.0"',
Accept: 'text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.7.0"',
'Api-User-Agent': 'VisualEditor-MediaWiki/' + mw.config.get( 'wgVersion' )
};