Skip to content

Commit 82f7254

Browse files
SamMousaDavertMik
authored andcommitted
Fixed issue with empty response stream in Yii2 (#5180)
1 parent 807c0b6 commit 82f7254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public function doRequest($request)
341341
}
342342

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

0 commit comments

Comments
 (0)