Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/private/Http/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public function request(string $method, string $uri, array $options = []): IResp

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 {
Expand Down
4 changes: 3 additions & 1 deletion lib/public/Http/Client/LocalServerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
*/
namespace OCP\Http\Client;

use Psr\Http\Client\ClientExceptionInterface;

/**
* @since 19.0.0
*/
class LocalServerException extends \RuntimeException {
class LocalServerException extends \RuntimeException implements ClientExceptionInterface {
}
Loading