diff --git a/lib/Http/Client.php b/lib/Http/Client.php index 5ff20b8c..3ce8f9d2 100644 --- a/lib/Http/Client.php +++ b/lib/Http/Client.php @@ -56,7 +56,7 @@ class Client implements ClientInterface { return $res ->withStatus($ncRes->getStatusCode()) - ->withBody(Psr7\stream_for($ncRes->getBody())); + ->withBody(Psr7\Utils::streamFor($ncRes->getBody())); } throw new Exception('Can only send GET or OPTIONS requests'); // XXX: How should Streams be sent using nextcloud?