Skip to content

Commit

Permalink
Do not yield stream, the AsyncServer API does not expect any value
Browse files Browse the repository at this point in the history
...but it might, see xp-framework/networking#28
  • Loading branch information
thekid committed Dec 3, 2023
1 parent 3e8c701 commit 85a820f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/web/Response.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function transmit($source, $mediaType= 'application/octet-stream', $size=
$out= $this->stream($size);
try {
while ($in->available()) {
yield 'write' => $out;
yield 'write' => null;
$out->write($in->read());
}
} finally {
Expand Down

0 comments on commit 85a820f

Please sign in to comment.