This commit is contained in:
yhirose 2021-01-23 13:33:27 -05:00
parent 0308d60cb2
commit 68d1281759
2 changed files with 24 additions and 12 deletions

View file

@ -1009,9 +1009,9 @@ TEST(RoutingHandlerTest, PreRoutingHandler) {
if (req.path == "/routing_handler") {
res.set_header("PRE_ROUTING", "on");
res.set_content("Routing Handler", "text/plain");
return true;
return httplib::Server::HandlerResponse::Handled;
}
return false;
return httplib::Server::HandlerResponse::Unhandled;
});
svr.set_error_handler([](const Request & /*req*/, Response &res) {