diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php index 0b5391b579c..f1b81df3964 100644 --- a/lib/private/Http/Client/Client.php +++ b/lib/private/Http/Client/Client.php @@ -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 { diff --git a/lib/public/Http/Client/LocalServerException.php b/lib/public/Http/Client/LocalServerException.php index bb18da13a15..1becf3d77c9 100644 --- a/lib/public/Http/Client/LocalServerException.php +++ b/lib/public/Http/Client/LocalServerException.php @@ -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 { }