diff options
author | Malf Furious <m@lfurio.us> | 2018-11-05 02:41:42 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-11-05 02:41:42 -0500 |
commit | a0f4582d26578bfde0de941309da7ce1477e8e8e (patch) | |
tree | 6c0c47ad769f34213abedd44ff0785d82394c50f | |
parent | ed8ad6bd4d4e0d389bb95632d08b6c97e85284a4 (diff) | |
download | scrott-a0f4582d26578bfde0de941309da7ce1477e8e8e.tar.gz scrott-a0f4582d26578bfde0de941309da7ce1477e8e8e.zip |
Return code 404 when displaying the 404 page
To be more compliant with the HTTP standard, we will _actually_ return
'404 Not Found' status when we decide to show the 404 view. A status of
'200 OK' is misleading and incorrect.
Signed-off-by: Malf Furious <m@lfurio.us>
-rw-r--r-- | app/index.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/index.php b/app/index.php index 21f3036..7395c6f 100644 --- a/app/index.php +++ b/app/index.php @@ -119,6 +119,7 @@ function main(array $argv) : void /* page not found */ else { + header("HTTP/1.1 404 Not Found"); require "view/404.php"; } } |