src/server/webdav/multistatus.c

branch
webdav
changeset 241
4adad7faf452
parent 239
d5031c30022c
child 242
c337a7ac82a8
--- a/src/server/webdav/multistatus.c	Sat Jan 25 15:34:30 2020 +0100
+++ b/src/server/webdav/multistatus.c	Sat Jan 25 21:37:38 2020 +0100
@@ -303,6 +303,8 @@
         return NULL;
     }
     
+    res->resource.err = 0;
+    
     // add resource funcs
     res->resource.addproperty = msresponse_addproperty;
     res->resource.close = msresponse_close;
@@ -507,6 +509,8 @@
     pool_handle_t *pool = response->multistatus->sn->pool;
     UcxAllocator *a = session_get_allocator(response->multistatus->sn);
     
+    response->resource.err++;
+      
     // MSResponse contains a list of properties for each status code
     // at first find the list for this status code
     PropertyErrorList *errlist = NULL;

mercurial