mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Rename magic header to be consistent with WMF CDN infrastructure
This name is consistent with T91820. Bug: T91820 Bug: T259685 Depends-On: I0c4ec63bb26641b237c92dbd3bc5367811ca0675 Followup-to:3561167493
Change-Id: I4c4c5f83ad56a198d08095d629a6ba86ce9dc1a4 (cherry picked from commitfce9192e82
)
This commit is contained in:
parent
1ddd2930bb
commit
4465cbe542
|
@ -134,7 +134,7 @@ trait ApiParsoidTrait {
|
|||
'Accept-Language' => self::getPageLanguage( $title )->getCode(),
|
||||
'User-Agent' => 'VisualEditor-MediaWiki/' . MW_VERSION,
|
||||
'Api-User-Agent' => 'VisualEditor-MediaWiki/' . MW_VERSION,
|
||||
'X-MediaWiki-Read' => 'true',
|
||||
'Promise-Non-Write-API-Action' => 'true',
|
||||
];
|
||||
// $reqheaders take precedence over $defaultReqHeaders
|
||||
$request['headers'] = $reqheaders + $defaultReqHeaders;
|
||||
|
|
Loading…
Reference in a new issue