src/server/webdav/multistatus.c

branch
webdav
changeset 241
4adad7faf452
parent 239
d5031c30022c
child 242
c337a7ac82a8
equal deleted inserted replaced
240:cd74667f6c85 241:4adad7faf452
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;

mercurial