We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b8bb0a commit 031f2caCopy full SHA for 031f2ca
1 file changed
src/Server/Response.php
@@ -268,15 +268,15 @@ public function sendContent(): static
268
269
try {
270
$this->stream->write($content);
271
+
272
+ if ($body->eof()) {
273
+ $body->close();
274
+ $resolve();
275
+ }
276
} catch (Throwable $exception) {
277
$body->close();
278
$reject($exception);
279
}
-
- if ($body->eof()) {
- $body->close();
- $resolve();
- }
280
});
281
})->await();
282
} elseif ($this->body instanceof Generator) {
0 commit comments