Jelajahi Sumber

Fixed README

yhirose 4 tahun lalu
induk
melakukan
084c643973
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      README.md

+ 1 - 1
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;