This commit is contained in:
2021-04-23 14:41:24 +08:00
parent 0376fbd7c7
commit d05c66dace
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -227,6 +227,7 @@ class Response extends HttpService
if (mb_strlen($sendData) >= 134217728) {
$this->response->end('');
} else {
Snowflake::writeFile(storage('request.log'), $sendData);
$this->response->end($sendData);
}
$this->response = null;
+2 -1
View File
@@ -545,7 +545,8 @@ class Router extends HttpService implements RouterInterface
if (!($node = $this->find_path(\request()))) {
return send(self::NOT_FOUND);
}
send($response = $node->dispatch(), 200);
$response = $node->dispatch();
send($response, 200);
if (!$node->hasAfter()) {
return null;
}