This commit is contained in:
2020-11-27 14:29:08 +08:00
parent e6ac6d1a09
commit fae348e594
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -215,6 +215,7 @@ class Response extends Application
$this->response->status($status);
$this->response->header('Content-Type', $this->getContentType());
$this->response->header('Run-Time', $this->getRuntime());
var_dump($this->headers);
if (!empty($this->headers) && is_array($this->headers)) {
foreach ($this->headers as $key => $header) {
$this->response->header($key, $header);
-1
View File
@@ -481,7 +481,6 @@ class Router extends Application implements RouterInterface
} else if (!($node = $this->find_path(\request()))) {
$response = send(self::NOT_FOUND, 404);
} else {
var_dump($node);
$response = send($node->dispatch(), 200);
}
} catch (ExitException $exception) {