Fix problem with child nodes in http url registry

fixes #9703
This commit is contained in:
Michael Friedrich 2015-07-22 12:23:56 +02:00
parent 838f7ca526
commit 43ff15cf86
1 changed files with 5 additions and 2 deletions

View File

@ -39,8 +39,11 @@ void HttpHandler::Register(const Url::Ptr& url, const HttpHandler::Ptr& handler)
node->Set("children", children);
}
Dictionary::Ptr sub_node = new Dictionary();
children->Set(elem, sub_node);
Dictionary::Ptr sub_node = children->Get(elem);
if (!sub_node) {
sub_node = new Dictionary();
children->Set(elem, sub_node);
}
node = sub_node;
}