mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix tests with empty response body
This commit is contained in:
parent
953b64f3f2
commit
3cf4fc02f9
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class Sapi {
|
|||
$copyStream = fopen('php://temp', 'r+');
|
||||
if (is_string($response->getBody())) {
|
||||
fwrite($copyStream, $response->getBody());
|
||||
} else {
|
||||
} else if (is_resource($response->getBody())) {
|
||||
stream_copy_to_stream($response->getBody(), $copyStream);
|
||||
}
|
||||
rewind($copyStream);
|
||||
|
|
|
|||
Loading…
Reference in a new issue