This commit is contained in:
as2252258@163.com
2021-09-24 02:23:24 +08:00
parent b9a1178fbe
commit 3d9bea7fb6
31 changed files with 110 additions and 78 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
namespace Server\Constrict;
use Annotation\Inject;
use Server\SInterface\DownloadInterface;
use Server\SInterface\OnDownloadInterface;
use Swoole\Server;
@@ -42,7 +42,7 @@ class ResponseEmitter implements Emitter
$response->header('Server', 'swoole');
$response->header('Swoole-Version', swoole_version());
if (!($emitter instanceof DownloadInterface)) {
if (!($emitter instanceof OnDownloadInterface)) {
$response->end($emitter->getBody()->getContents());
} else {
$emitter->dispatch($response);