Compare commits

..

2 Commits

Author SHA1 Message Date
Ivan Polyakov 73c7a9db45 Merge branch 'dev' 2 years ago
Ivan Polyakov 89b19bb79e segfault when checking URL parts fixed by skipping the first (null) part 2 years ago
  1. 2
      c/app.c
  2. 2
      config.mk

2
c/app.c

@ -57,7 +57,7 @@ static rpd_route *routes_fabric(rpd_app *app, rpd_req *req) @@ -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;

2
config.mk

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
VERSION=0.4
VERSION=0.4.1
#arg Installation prefix
PREFIX=/usr/local

Loading…
Cancel
Save