fix tests with empty response body

This commit is contained in:
Robin Appelman 2015-09-16 15:27:22 +02:00
parent 953b64f3f2
commit 3cf4fc02f9
1 changed files with 1 additions and 1 deletions

View File

@ -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);