summaryrefslogtreecommitdiffstats
path: root/core/namespace/Router.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-03-25 18:00:17 +0100
committerThomas Lange <code@nerdmind.de>2017-03-25 18:00:17 +0100
commit008617f01c42dfbd6241be3bebcde90815c8a323 (patch)
tree8786991607ecda88f2276458338b0e1cb1646ef0 /core/namespace/Router.php
parent82250d468ed798bb425c1fe9b75f6ee364306f09 (diff)
downloadblog-008617f01c42dfbd6241be3bebcde90815c8a323.tar.gz
blog-008617f01c42dfbd6241be3bebcde90815c8a323.tar.xz
blog-008617f01c42dfbd6241be3bebcde90815c8a323.zip
HTTP response status "404 Not Found" was not sent if a route was not found.
Diffstat (limited to 'core/namespace/Router.php')
-rw-r--r--core/namespace/Router.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/namespace/Router.php b/core/namespace/Router.php
index 22784c2..ad46033 100644
--- a/core/namespace/Router.php
+++ b/core/namespace/Router.php
@@ -57,6 +57,7 @@ class Router {
}
if($route_found === FALSE) {
+ http_response_code(404);
require_once 'system/404.php';
}
}