summaryrefslogtreecommitdiffstats
path: root/tests/lib/connector/sabre
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-16 15:27:22 +0200
committerRobin Appelman <icewind@owncloud.com>2015-09-16 15:27:22 +0200
commit3cf4fc02f9c99ba523f384f3def9f04eac21a067 (patch)
tree3b876aaf5bbee33ed5e7b76c8ca3148369375e4b /tests/lib/connector/sabre
parent953b64f3f2ee919243e737d4f5f775c32954c30e (diff)
downloadnextcloud-server-3cf4fc02f9c99ba523f384f3def9f04eac21a067.tar.gz
nextcloud-server-3cf4fc02f9c99ba523f384f3def9f04eac21a067.zip
fix tests with empty response body
Diffstat (limited to 'tests/lib/connector/sabre')
-rw-r--r--tests/lib/connector/sabre/requesttest/sapi.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/connector/sabre/requesttest/sapi.php b/tests/lib/connector/sabre/requesttest/sapi.php
index eda5d738f6f..cda9fdb70f5 100644
--- a/tests/lib/connector/sabre/requesttest/sapi.php
+++ b/tests/lib/connector/sabre/requesttest/sapi.php
@@ -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);