This commit is contained in:
2021-07-27 16:33:29 +08:00
parent 7d967d2762
commit 1991550f49
+3
View File
@@ -103,6 +103,9 @@ class HTTPServerListener extends Abstracts\Server
{ {
[$sRequest, $sResponse] = [HRequest::create($request), HResponse::create($response)]; [$sRequest, $sResponse] = [HRequest::create($request), HResponse::create($response)];
try { try {
$sResponse->send('1');
return;
$node = $this->router->find_path($sRequest); $node = $this->router->find_path($sRequest);
if (empty($node)) { if (empty($node)) {
$sResponse->send('404', 404); $sResponse->send('404', 404);