From f95c0cc11d49bdbd871e320238644eb64d14aefb Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Thu, 19 Sep 2024 22:48:37 +0200 Subject: [PATCH] Pass function name to HttpRequestFactory::create Change-Id: Ie48127731f0731f780e153f6aacce25961acc3ed --- includes/Push/NotificationServiceClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Push/NotificationServiceClient.php b/includes/Push/NotificationServiceClient.php index 49e56ec08..e13c78fa7 100644 --- a/includes/Push/NotificationServiceClient.php +++ b/includes/Push/NotificationServiceClient.php @@ -87,7 +87,7 @@ class NotificationServiceClient implements LoggerAwareInterface { private function constructRequest( string $provider, array $payload ): MWHttpRequest { $url = "$this->endpointBase/$provider"; $opts = [ 'method' => 'POST', 'postData' => json_encode( $payload ) ]; - $req = $this->httpRequestFactory->create( $url, $opts ); + $req = $this->httpRequestFactory->create( $url, $opts, __METHOD__ ); $req->setHeader( 'Content-Type', 'application/json; charset=utf-8' ); return $req; }