From 084c643973b43fe796f56bf9c124c5a7ce4c0efc Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 10 Dec 2021 22:33:59 -0500 Subject: [PATCH] Fixed README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 33a2f03..857670f 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ svr.set_exception_handler([](const auto& req, auto& res, std::exception &e) { ### Pre routing handler ```cpp -svr.set_pre_routing_handler([](const auto& req, auto& res) -> bool { +svr.set_pre_routing_handler([](const auto& req, auto& res) { if (req.path == "/hello") { res.set_content("world", "text/html"); return Server::HandlerResponse::Handled;