From 78c474c744a2582ad18cb6d936ab9273fffc6350 Mon Sep 17 00:00:00 2001 From: yhirose Date: Wed, 27 Jan 2021 11:59:24 -0500 Subject: [PATCH] Update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 952a757..4c3dc2f 100644 --- a/README.md +++ b/README.md @@ -183,9 +183,9 @@ svr.set_error_handler([](const auto& req, auto& res) { svr.set_pre_routing_handler([](const auto& req, auto& res) -> bool { if (req.path == "/hello") { res.set_content("world", "text/html"); - return true; // This request is handled + return Server::HandlerResponse::Handled; } - return false; // Let the router handle this request + return Server::HandlerResponse::Unhandled; }); ```