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;