libidav/resource.c

changeset 475
52e4171d42ce
parent 441
99c26b1b7327
child 477
9a406db6729b
equal deleted inserted replaced
474:017a4f09e6fa 475:52e4171d42ce
645 } 645 }
646 p->value = NULL; 646 p->value = NULL;
647 proplist = ucx_list_append_a(mp->allocator, proplist, p); 647 proplist = ucx_list_append_a(mp->allocator, proplist, p);
648 } 648 }
649 649
650 UcxBuffer *rqbuf = create_propfind_request(res->session, proplist); 650 UcxBuffer *rqbuf = create_propfind_request(res->session, proplist, "propfind", 0);
651 int ret = dav_propfind(res->session, res, rqbuf); 651 int ret = dav_propfind(res->session, res, rqbuf);
652 ucx_buffer_free(rqbuf); 652 ucx_buffer_free(rqbuf);
653 ucx_mempool_destroy(mp); 653 ucx_mempool_destroy(mp);
654 return ret; 654 return ret;
655 } 655 }
966 if(code == CURLE_OK && (s >= 200 && s < 300)) { 966 if(code == CURLE_OK && (s >= 200 && s < 300)) {
967 sn->error = DAV_OK; 967 sn->error = DAV_OK;
968 // if the session has encrypted file names, add crypto infos 968 // if the session has encrypted file names, add crypto infos
969 if(!resource_add_crypto_info(sn, res->href, res->name, NULL)) { 969 if(!resource_add_crypto_info(sn, res->href, res->name, NULL)) {
970 // do a minimal propfind request 970 // do a minimal propfind request
971 UcxBuffer *rqbuf = create_propfind_request(sn, NULL); 971 UcxBuffer *rqbuf = create_propfind_request(sn, NULL, "propfind", 0);
972 int ret = dav_propfind(sn, res, rqbuf); 972 int ret = dav_propfind(sn, res, rqbuf);
973 ucx_buffer_free(rqbuf); 973 ucx_buffer_free(rqbuf);
974 return ret; 974 return ret;
975 } else { 975 } else {
976 return 1; 976 return 1;

mercurial