mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Merge "Update VE to request Parsoid HTML v1.7.0"
This commit is contained in:
commit
fbb83cc391
|
@ -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;
|
||||
|
|
|
@ -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' )
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue