diff options
author | Freya Murphy <freya@freyacat.org> | 2024-11-26 12:21:47 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-11-26 12:21:47 -0500 |
commit | 499a9ea2c68ab5e650eaa77b90256e67cd13e967 (patch) | |
tree | 64416233aea73763cb74c7833c433035d1294a18 /src | |
parent | dont hardcode getenv (diff) | |
download | ldap_forwardauth-499a9ea2c68ab5e650eaa77b90256e67cd13e967.tar.gz ldap_forwardauth-499a9ea2c68ab5e650eaa77b90256e67cd13e967.tar.bz2 ldap_forwardauth-499a9ea2c68ab5e650eaa77b90256e67cd13e967.zip |
fix 404
Diffstat (limited to 'src')
-rw-r--r-- | src/web/router.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/router.php b/src/web/router.php index 57b69c0..56f4156 100644 --- a/src/web/router.php +++ b/src/web/router.php @@ -178,7 +178,7 @@ class Router { private function page_not_found(): void { http_response_code(404); - $this->send_message('404', 'Not Found'); + $this->send_message('Not Found', '404'); } public function handle(): void { @@ -187,7 +187,7 @@ class Router { ['GET', '/login'] => $this->page_login(), ['POST', '/login'] => $this->handle_login(), ['GET', '/logout'] => $this->handle_logout(), - _ => $this->page_not_found() + default => $this->page_not_found() }; } |