mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-14 16:58:30 +00:00
Resolve #839
This commit is contained in:
parent
0308d60cb2
commit
68d1281759
2 changed files with 24 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue