mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Change Accept header a bit
Per post-merge commit on I77af4b58 by Subbu Bug: T128233 Change-Id: I30c4c1ad5b68e5b8a006d7a6c7bcbaac7e2eb164
This commit is contained in:
parent
078886b5a4
commit
4ed6fd4010
|
@ -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;profile=mediawiki.org/specs/html/1.2.0';
|
||||
$reqheaders['Accept'] = 'text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.2.0"';
|
||||
$request['headers'] = $reqheaders;
|
||||
$response = $this->serviceClient->run( $request );
|
||||
if ( $response['code'] === 200 && $response['error'] === "" ) {
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
stash: 'true'
|
||||
},
|
||||
// Should be synchronised with ApiVisualEditor.php
|
||||
headers: { Accept: 'text/html;profile=mediawiki.org/specs/html/1.2.0' },
|
||||
headers: { Accept: 'text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.2.0"' },
|
||||
dataType: 'text'
|
||||
} );
|
||||
} else {
|
||||
|
@ -165,7 +165,7 @@
|
|||
( oldid === undefined ? '' : '/' + oldid ),
|
||||
type: 'GET',
|
||||
// Should be synchronised with ApiVisualEditor.php
|
||||
headers: { Accept: 'text/html;profile=mediawiki.org/specs/html/1.2.0' },
|
||||
headers: { Accept: 'text/html; charset=utf-8; profile="mediawiki.org/specs/html/1.2.0"' },
|
||||
dataType: 'text'
|
||||
} );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue