Make MatrixHttpApi->send public

This commit is contained in:
Ben 2021-09-19 14:54:07 +02:00
parent 70f6273e0e
commit 98743c6454
Signed by: ben
GPG Key ID: 0F54A7ED232D3319
1 changed files with 2 additions and 2 deletions

View File

@ -900,8 +900,8 @@ class MatrixHttpApi {
* @throws MatrixRequestException
* @throws MatrixHttpLibException
*/
private function send(string $method, string $path, $content = null, array $queryParams = [], array $headers = [],
$apiPath = self::MATRIX_V2_API_PATH, $returnJson = true) {
public function send(string $method, string $path, $content = null, array $queryParams = [], array $headers = [],
string $apiPath = self::MATRIX_V2_API_PATH, bool $returnJson = true) {
$options = [];
if (!in_array('User-Agent', $headers)) {
$headers['User-Agent'] = 'php-matrix-sdk/' . self::VERSION;