From 4465cbe54278dcac10f06cada23ff04d3511dd6e Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Thu, 4 Feb 2021 12:52:43 -0500 Subject: [PATCH] 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: 35611674938bd059a339ff93955043b125c478df Change-Id: I4c4c5f83ad56a198d08095d629a6ba86ce9dc1a4 (cherry picked from commit fce9192e825b2a25efb7a45798bcb0816c2f3418) --- includes/ApiParsoidTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ApiParsoidTrait.php b/includes/ApiParsoidTrait.php index 0b1fd5ec42..36f9076594 100644 --- a/includes/ApiParsoidTrait.php +++ b/includes/ApiParsoidTrait.php @@ -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;