mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Don't try to route requests when routing is disabled.
This commit is contained in:
parent
1bb16134ad
commit
3361d576de
@ -118,6 +118,11 @@ void WebNode::set_database(Database *db) {
|
||||
#endif
|
||||
|
||||
void WebNode::handle_request_main(Request *request) {
|
||||
if (!_routing_enabled) {
|
||||
_handle_request_main(request);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!try_route_request_to_children(request)) {
|
||||
_handle_request_main(request);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user