This commit is contained in:
2021-06-08 11:58:13 +08:00
parent 7e25c361bf
commit 164ce98990
+1 -1
View File
@@ -490,7 +490,7 @@ class Router extends HttpService implements RouterInterface
{ {
$node = $this->find_path(\request()); $node = $this->find_path(\request());
if (!($node instanceof Node)) { if (!($node instanceof Node)) {
return send(self::NOT_FOUND); return send('[' . \request()->getMethod() . ':' . \request()->getUri() . ']' . self::NOT_FOUND);
} }
send(($response = $node->dispatch()), 200); send(($response = $node->dispatch()), 200);
if (!$node->hasAfter()) { if (!$node->hasAfter()) {