307 static int reset_properties(DavSession *sn, DavResult *result, DavResource *res, UcxList *fields) { |
307 static int reset_properties(DavSession *sn, DavResult *result, DavResource *res, UcxList *fields) { |
308 UcxMap *new_properties = ucx_map_new_a(sn->mp->allocator, 32); |
308 UcxMap *new_properties = ucx_map_new_a(sn->mp->allocator, 32); |
309 DavResourceData *data = (DavResourceData*)res->data; |
309 DavResourceData *data = (DavResourceData*)res->data; |
310 |
310 |
311 // add basic properties |
311 // add basic properties |
312 char *value; |
312 void *value; |
313 |
313 |
314 sstr_t cl_keystr = dav_property_key("DAV:", "getcontentlength"); |
314 sstr_t cl_keystr = dav_property_key("DAV:", "getcontentlength"); |
315 UcxKey cl_key = ucx_key(cl_keystr.ptr, cl_keystr.length); |
315 UcxKey cl_key = ucx_key(cl_keystr.ptr, cl_keystr.length); |
316 value = ucx_map_get(data->properties, cl_key); |
316 value = ucx_map_get(data->properties, cl_key); |
317 if(value) { |
317 if(value) { |