Merge pull request #135 from fishgege/patch-1
bugfix: insert path success, but get data failed
This commit is contained in:
commit
d2fcf2f2d4
1 changed files with 1 additions and 0 deletions
|
@ -691,6 +691,7 @@ R3Node * r3_tree_insert_pathl_ex(R3Node *tree, const char *path, unsigned int pa
|
||||||
r3_node_append_route(tree, path, path_len, method, data);
|
r3_node_append_route(tree, path, path_len, method, data);
|
||||||
info("tree router path is: %s, with len: %d\n", path, path_len);
|
info("tree router path is: %s, with len: %d\n", path, path_len);
|
||||||
}
|
}
|
||||||
|
tree->data = data;
|
||||||
return tree;
|
return tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue