Fix streamFor after Guzzle update

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2021-07-24 21:55:23 +02:00
parent 1c381c7529
commit 18722b5b87
1 changed files with 1 additions and 1 deletions

View File

@ -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?