mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #59636 from nextcloud/carl/sendRequest-followup
fix(Client): Make class complient with PSR standard
This commit is contained in:
commit
5ffa428c64
2 changed files with 4 additions and 2 deletions
|
|
@ -481,7 +481,7 @@ class Client implements IClient {
|
|||
|
||||
public function sendRequest(RequestInterface $request): ResponseInterface {
|
||||
$this->preventLocalAddress((string)$request->getUri(), []);
|
||||
return $this->client->sendRequest($request);
|
||||
return $this->client->send($request, $this->buildRequestOptions([]));
|
||||
}
|
||||
|
||||
protected function wrapGuzzlePromise(PromiseInterface $promise): IPromise {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,10 @@ declare(strict_types=1);
|
|||
*/
|
||||
namespace OCP\Http\Client;
|
||||
|
||||
use Psr\Http\Client\ClientExceptionInterface;
|
||||
|
||||
/**
|
||||
* @since 19.0.0
|
||||
*/
|
||||
class LocalServerException extends \RuntimeException {
|
||||
class LocalServerException extends \RuntimeException implements ClientExceptionInterface {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue