Skip to content

Commit

Permalink
Rename magic header to be consistent with WMF CDN infrastructure
Browse files Browse the repository at this point in the history
This name is consistent with T91820.

Bug: T91820
Bug: T259685
Depends-On: I0c4ec63bb26641b237c92dbd3bc5367811ca0675
Followup-to: 3561167
Change-Id: I4c4c5f83ad56a198d08095d629a6ba86ce9dc1a4
  • Loading branch information
cscott committed Feb 4, 2021
1 parent 3561167 commit fce9192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/ApiParsoidTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected function requestRestbase(
'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;
Expand Down

0 comments on commit fce9192

Please sign in to comment.