改名
This commit is contained in:
@@ -439,6 +439,9 @@ class Router extends Application implements RouterInterface
|
|||||||
}
|
}
|
||||||
$methods = $this->nodes[$method];
|
$methods = $this->nodes[$method];
|
||||||
$uri = ltrim($request->headers->getHeader('request_uri'), '/');
|
$uri = ltrim($request->headers->getHeader('request_uri'), '/');
|
||||||
|
if (empty($uri)) {
|
||||||
|
$uri = '/';
|
||||||
|
}
|
||||||
if (!isset($methods[$uri])) {
|
if (!isset($methods[$uri])) {
|
||||||
if ($request->isOption) {
|
if ($request->isOption) {
|
||||||
return $this->search_options($request);
|
return $this->search_options($request);
|
||||||
|
|||||||
@@ -170,9 +170,7 @@ class Server extends Application
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws ReflectionException
|
|
||||||
* @throws ConfigException
|
* @throws ConfigException
|
||||||
* @throws NotFindClassException
|
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function onProcessListener()
|
public function onProcessListener()
|
||||||
|
|||||||
Reference in New Issue
Block a user