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 commit fce9192e82)
This commit is contained in:
C. Scott Ananian 2021-02-04 12:52:43 -05:00
parent 1ddd2930bb
commit 4465cbe542

View file

@ -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;