Send 404 for favicon.ico

This commit is contained in:
blankie 2023-12-02 15:28:52 +11:00
parent 278deff6da
commit f6908ee486
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ int main(int argc, char** argv) {
server.Get("/", home_route);
server.Get("/style.css", css_route);
server.Get("/favicon.ico", [](const httplib::Request& req, httplib::Response& res) {
res.status = 404;
serve_error(req, res, "404: Page not found");
});
server.Get("/settings", user_settings_route);
server.Post("/settings", user_settings_route);