|
|
@ -57,7 +57,7 @@ static rpd_route *routes_fabric(rpd_app *app, rpd_req *req) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
int match = 1; |
|
|
|
int match = 1; |
|
|
|
for (int j = 0; j < route_path->parts_len && match; j++) { |
|
|
|
for (int j = 1; j < route_path->parts_len && match; j++) { |
|
|
|
int cur_part_is_dyn = route_path->parts[i][0] == ':'; |
|
|
|
int cur_part_is_dyn = route_path->parts[i][0] == ':'; |
|
|
|
if (!cur_part_is_dyn && strcmp(req_path->parts[i], route_path->parts[i])) { |
|
|
|
if (!cur_part_is_dyn && strcmp(req_path->parts[i], route_path->parts[i])) { |
|
|
|
match = 0; |
|
|
|
match = 0; |
|
|
|