Merge branch 'feature/make-http-api-send-public' into feature/guzzle7-update
This commit is contained in:
commit
f0d759e56b
|
@ -900,8 +900,8 @@ class MatrixHttpApi {
|
||||||
* @throws MatrixRequestException
|
* @throws MatrixRequestException
|
||||||
* @throws MatrixHttpLibException
|
* @throws MatrixHttpLibException
|
||||||
*/
|
*/
|
||||||
private function send(string $method, string $path, $content = null, array $queryParams = [], array $headers = [],
|
public function send(string $method, string $path, $content = null, array $queryParams = [], array $headers = [],
|
||||||
$apiPath = self::MATRIX_V2_API_PATH, $returnJson = true) {
|
string $apiPath = self::MATRIX_V2_API_PATH, bool $returnJson = true) {
|
||||||
$options = [];
|
$options = [];
|
||||||
if (!in_array('User-Agent', $headers)) {
|
if (!in_array('User-Agent', $headers)) {
|
||||||
$headers['User-Agent'] = 'php-matrix-sdk/' . self::VERSION;
|
$headers['User-Agent'] = 'php-matrix-sdk/' . self::VERSION;
|
||||||
|
|
Loading…
Reference in New Issue