mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-14 10:29:35 +00:00
Resolve #839
This commit is contained in:
1 parent
0308d60cb2
commit
68d1281759
2 files changed
+24
-12
No files matched your search
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user