改名
This commit is contained in:
@@ -215,6 +215,7 @@ class Response extends Application
|
|||||||
$this->response->status($status);
|
$this->response->status($status);
|
||||||
$this->response->header('Content-Type', $this->getContentType());
|
$this->response->header('Content-Type', $this->getContentType());
|
||||||
$this->response->header('Run-Time', $this->getRuntime());
|
$this->response->header('Run-Time', $this->getRuntime());
|
||||||
|
var_dump($this->headers);
|
||||||
if (!empty($this->headers) && is_array($this->headers)) {
|
if (!empty($this->headers) && is_array($this->headers)) {
|
||||||
foreach ($this->headers as $key => $header) {
|
foreach ($this->headers as $key => $header) {
|
||||||
$this->response->header($key, $header);
|
$this->response->header($key, $header);
|
||||||
|
|||||||
@@ -481,7 +481,6 @@ class Router extends Application implements RouterInterface
|
|||||||
} else if (!($node = $this->find_path(\request()))) {
|
} else if (!($node = $this->find_path(\request()))) {
|
||||||
$response = send(self::NOT_FOUND, 404);
|
$response = send(self::NOT_FOUND, 404);
|
||||||
} else {
|
} else {
|
||||||
var_dump($node);
|
|
||||||
$response = send($node->dispatch(), 200);
|
$response = send($node->dispatch(), 200);
|
||||||
}
|
}
|
||||||
} catch (ExitException $exception) {
|
} catch (ExitException $exception) {
|
||||||
|
|||||||
Reference in New Issue
Block a user