This commit is contained in:
2021-08-05 17:59:38 +08:00
parent c329d87fb5
commit 9bb0181bd2
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -376,7 +376,6 @@ class Node extends HttpService
if (empty($handlerProviders)) {
return '<h2>HTTP 404 Not Found</h2><hr><i>Powered by Swoole</i>';
}
var_dump($handlerProviders);
return call_user_func($handlerProviders, \request());
}
+1
View File
@@ -117,6 +117,7 @@ class HTTPServerListener extends Abstracts\Server
public function onRequest(Request $request, Response $response)
{
try {
var_dump($request);
$node = $this->router->Branch_search(HSRequest::create($request));
if (!($node instanceof Node)) {
throw new RequestException('<h2>HTTP 404 Not Found</h2><hr><i>Powered by Swoole</i>', 404);