Fix sqlite compatibility by opting out of obligatory write lock

Bug: T259685
Depends-On: If37dc890a24a45c3a914e310b5b5bf625965e9e6
Change-Id: Ib203145f4c9ddfdc6701a916cbbbe17dae85efb9
(cherry picked from commit 3561167493)
This commit is contained in:
C. Scott Ananian 2021-02-02 18:02:46 -05:00
parent be34a2da1e
commit 1ddd2930bb

View file

@ -134,6 +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',
];
// $reqheaders take precedence over $defaultReqHeaders
$request['headers'] = $reqheaders + $defaultReqHeaders;