Merge "Remove X-Parsoid-Variant configuration value, which is no longer needed"

This commit is contained in:
jenkins-bot 2020-03-17 00:13:39 +00:00 committed by Gerrit Code Review
commit 39a8ecf890
4 changed files with 0 additions and 8 deletions

View file

@ -36,7 +36,6 @@
},
"VisualEditorRestbaseURL": false,
"VisualEditorFullRestbaseURL": false,
"VisualEditorRestbaseParsoidVariant": false,
"VisualEditorAllowLossySwitching": true,
"VisualEditorAvailableNamespaces": {
"User": true,

View file

@ -114,9 +114,6 @@ class ApiVisualEditor extends ApiBase {
$reqheaders['Accept-Language'] = self::getPageLanguage( $title )->getCode();
$reqheaders['User-Agent'] = 'VisualEditor-MediaWiki/' . $wgVersion;
$reqheaders['Api-User-Agent'] = 'VisualEditor-MediaWiki/' . $wgVersion;
if ( $this->veConfig->get( 'VisualEditorRestbaseParsoidVariant' ) ) {
$reqheaders['X-Parsoid-Variant'] = $this->veConfig->get( 'VisualEditorRestbaseParsoidVariant' );
}
$request['headers'] = $reqheaders;
$response = $this->serviceClient->run( $request );
if ( $response['code'] === 200 && $response['error'] === "" ) {

View file

@ -1011,7 +1011,6 @@ class VisualEditorHooks {
'rebaserUrl' => $coreConfig->get( 'VisualEditorRebaserURL' ),
'restbaseUrl' => $coreConfig->get( 'VisualEditorRestbaseURL' ),
'fullRestbaseUrl' => $coreConfig->get( 'VisualEditorFullRestbaseURL' ),
'parsoidVariant' => $veConfig->get( 'VisualEditorRestbaseParsoidVariant' ),
'allowLossySwitching' => $coreConfig->get( 'VisualEditorAllowLossySwitching' ),
'feedbackApiUrl' => $veConfig->get( 'VisualEditorFeedbackAPIURL' ),
'feedbackTitle' => $veConfig->get( 'VisualEditorFeedbackTitle' ),

View file

@ -338,9 +338,6 @@
'Accept-Language': mw.config.get( 'wgVisualEditor' ).pageLanguageCode,
'Api-User-Agent': 'VisualEditor-MediaWiki/' + mw.config.get( 'wgVersion' )
};
if ( conf.parsoidVariant ) {
headers[ 'X-Parsoid-Variant' ] = conf.parsoidVariant;
}
// Convert specified Wikitext to HTML
if (