This commit is contained in:
2021-09-10 10:50:56 +08:00
parent f217a14f23
commit 1db221c771
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class ResponseEmitter implements Emitter
$response->header('Swoole-Version', swoole_version());
if (!($emitter instanceof DownloadInterface)) {
$response->end($emitter->getBody());
$response->end($emitter->getBody()->getContents());
} else {
$emitter->dispatch($response);
}