From 008617f01c42dfbd6241be3bebcde90815c8a323 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 25 Mar 2017 18:00:17 +0100 Subject: HTTP response status "404 Not Found" was not sent if a route was not found. --- core/namespace/Router.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/namespace') 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'; } } -- cgit v1.2.3