Pass function name to HttpRequestFactory::create

Change-Id: Ic8e7aa35aea9164b4a9ae44549550d49b062361e
This commit is contained in:
Umherirrender 2024-09-19 23:20:16 +02:00
parent 9a0dccd41f
commit ebecba2ab9

View file

@ -215,7 +215,7 @@ class MathMathML extends MathRenderer {
global $wgMathLaTeXMLTimeout;
$post = $this->getPostData();
$options = [ 'method' => 'POST', 'postData' => $post, 'timeout' => $wgMathLaTeXMLTimeout ];
$req = MediaWikiServices::getInstance()->getHttpRequestFactory()->create( $this->host, $options );
$req = MediaWikiServices::getInstance()->getHttpRequestFactory()->create( $this->host, $options, __METHOD__ );
$status = $req->execute();
if ( $status->isGood() ) {
return StatusValue::newGood( $req->getContent() );