Don't try to route requests when routing is disabled.

This commit is contained in:
Relintai 2022-02-04 20:26:08 +01:00
parent 1bb16134ad
commit 3361d576de

View File

@ -118,6 +118,11 @@ void WebNode::set_database(Database *db) {
#endif #endif
void WebNode::handle_request_main(Request *request) { void WebNode::handle_request_main(Request *request) {
if (!_routing_enabled) {
_handle_request_main(request);
return;
}
if (!try_route_request_to_children(request)) { if (!try_route_request_to_children(request)) {
_handle_request_main(request); _handle_request_main(request);
} }