mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
fix: Swap method and uri parameter in request to match upstream order
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
3056bc4962
commit
82fbab4632
2 changed files with 4 additions and 4 deletions
|
|
@ -427,8 +427,8 @@ class Client implements IClient {
|
|||
/**
|
||||
* Sends a HTTP request
|
||||
*
|
||||
* @param string $uri
|
||||
* @param string $method The HTTP method to use
|
||||
* @param string $uri
|
||||
* @param array $options Array such as
|
||||
* 'query' => [
|
||||
* 'field' => 'abc',
|
||||
|
|
@ -454,7 +454,7 @@ class Client implements IClient {
|
|||
* @return IResponse
|
||||
* @throws \Exception If the request could not get completed
|
||||
*/
|
||||
public function request(string $uri, string $method, array $options = []): IResponse {
|
||||
public function request(string $method, string $uri, array $options = []): IResponse {
|
||||
$this->preventLocalAddress($uri, $options);
|
||||
$response = $this->client->request($method, $uri, $this->buildRequestOptions($options));
|
||||
$isStream = isset($options['stream']) && $options['stream'];
|
||||
|
|
|
|||
|
|
@ -219,8 +219,8 @@ interface IClient {
|
|||
|
||||
/**
|
||||
* Sends a HTTP request
|
||||
* @param string $uri
|
||||
* @param string $method The HTTP method to use
|
||||
* @param string $uri
|
||||
* @param array $options Array such as
|
||||
* 'query' => [
|
||||
* 'field' => 'abc',
|
||||
|
|
@ -246,7 +246,7 @@ interface IClient {
|
|||
* @throws \Exception If the request could not get completed
|
||||
* @since 29.0.0
|
||||
*/
|
||||
public function request(string $uri, string $method, array $options = []): IResponse;
|
||||
public function request(string $method, string $uri, array $options = []): IResponse;
|
||||
|
||||
/**
|
||||
* Sends an asynchronous GET request
|
||||
|
|
|
|||
Loading…
Reference in a new issue