301 res->resource.href = pool_strdup(ms->sn->pool, path); |
301 res->resource.href = pool_strdup(ms->sn->pool, path); |
302 if(!res->resource.href) { |
302 if(!res->resource.href) { |
303 return NULL; |
303 return NULL; |
304 } |
304 } |
305 |
305 |
|
306 res->resource.err = 0; |
|
307 |
306 // add resource funcs |
308 // add resource funcs |
307 res->resource.addproperty = msresponse_addproperty; |
309 res->resource.addproperty = msresponse_addproperty; |
308 res->resource.close = msresponse_close; |
310 res->resource.close = msresponse_close; |
309 |
311 |
310 res->properties = ucx_map_new_a(session_get_allocator(ms->sn), 32); |
312 res->properties = ucx_map_new_a(session_get_allocator(ms->sn), 32); |
505 int statuscode) |
507 int statuscode) |
506 { |
508 { |
507 pool_handle_t *pool = response->multistatus->sn->pool; |
509 pool_handle_t *pool = response->multistatus->sn->pool; |
508 UcxAllocator *a = session_get_allocator(response->multistatus->sn); |
510 UcxAllocator *a = session_get_allocator(response->multistatus->sn); |
509 |
511 |
|
512 response->resource.err++; |
|
513 |
510 // MSResponse contains a list of properties for each status code |
514 // MSResponse contains a list of properties for each status code |
511 // at first find the list for this status code |
515 // at first find the list for this status code |
512 PropertyErrorList *errlist = NULL; |
516 PropertyErrorList *errlist = NULL; |
513 PropertyErrorList *list = response->errors; |
517 PropertyErrorList *list = response->errors; |
514 PropertyErrorList *last = NULL; |
518 PropertyErrorList *last = NULL; |