mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Pass function name to HttpRequestFactory::create
Change-Id: Ie48127731f0731f780e153f6aacce25961acc3ed
This commit is contained in:
parent
89a3a1fc57
commit
f95c0cc11d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue