diff --git a/c/app.c b/c/app.c index 3bd8482..1efc19a 100644 --- a/c/app.c +++ b/c/app.c @@ -57,7 +57,7 @@ static rpd_route *routes_fabric(rpd_app *app, rpd_req *req) continue; 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] == ':'; if (!cur_part_is_dyn && strcmp(req_path->parts[i], route_path->parts[i])) { match = 0; diff --git a/config.mk b/config.mk index 1ea7d81..e620672 100644 --- a/config.mk +++ b/config.mk @@ -1,4 +1,4 @@ -VERSION=0.4 +VERSION=0.4.1 #arg Installation prefix PREFIX=/usr/local