libidav/davqlexec.c

branch
v1.2
changeset 481
ff477f1f7765
parent 387
92f8a2a243fc
child 594
23608c2e1de9
--- a/libidav/davqlexec.c	Sun Oct 07 09:14:03 2018 +0200
+++ b/libidav/davqlexec.c	Thu Oct 11 19:29:45 2018 +0200
@@ -602,6 +602,9 @@
         //printf("rpbuf: %s %s\n%.*s\n\n", sr->resource->path, sr->resource->href, rpbuf->pos, rpbuf->space);
         
         if(ret == CURLE_OK && http_status == 207) {
+            // in case of an redirect we have to adjust resource->href
+            dav_set_effective_href(sn, root);
+            
             // propfind request successful, now parse the response
             char *url = "http://url/";
             PropfindParser *parser = create_propfind_parser(rpbuf, url);

mercurial