dav/main.c

changeset 609
dc3d70848c7c
parent 587
3c917df041b8
child 611
a7c48e0dca88
equal deleted inserted replaced
608:3e4c0285a868 609:dc3d70848c7c
379 repo->authmethods = CURLAUTH_BASIC; 379 repo->authmethods = CURLAUTH_BASIC;
380 if(url[ulen-1] == '/') { 380 if(url[ulen-1] == '/') {
381 repo->url = strdup(url); 381 repo->url = strdup(url);
382 *path = strdup("/"); 382 *path = strdup("/");
383 } else if (strchr(url, '/')) { 383 } else if (strchr(url, '/')) {
384 repo->url = util_parent_path(url); 384 repo->url = util_url_base(url);
385 // TODO: check/fix 385 *path = util_url_path(url);
386 *path = strdup(util_resource_name(url)-1);
387 } else { 386 } else {
388 repo->url = strdup(url); 387 repo->url = strdup(url);
389 *path = strdup("/"); 388 *path = strdup("/");
390 } 389 }
391 } 390 }

mercurial