Skip to content

Commit

Permalink
Fixed issue with empty response stream in Yii2 (Codeception#5180)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa authored and DavertMik committed Sep 20, 2018
1 parent 005abfa commit b8124f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Lib/Connector/Yii2.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 341,7 @@ public function doRequest($request)
}

$content = ob_get_clean();
if (empty($content) && !empty($response->content)) {
if (empty($content) && !empty($response->content) && !isset($response->stream)) {
throw new \Exception('No content was sent from Yii application');
}

Expand Down

0 comments on commit b8124f0

Please sign in to comment.