src/server/webdav/webdav.c

changeset 64
c7f5b062e622
parent 59
ab25c0a231d0
child 69
4a10bc0ee80d
--- a/src/server/webdav/webdav.c	Sat May 11 13:28:26 2013 +0200
+++ b/src/server/webdav/webdav.c	Wed May 22 13:27:31 2013 +0200
@@ -275,6 +275,9 @@
     davrq->isdir = S_ISDIR(st.st_mode);
     davrq->persistencemgr->propfind_begin(davrq->persistencemgr, davrq);
     
+    // create the response for the requested resource
+    dav_resource_response(davrq, sstr(ppath), sstr(uri));
+    
     /*
      * if the requested webdav resource(file) is a directory, we create
      * a response for every child
@@ -294,9 +297,6 @@
         }
     }
     
-    // create the response for the requested resource
-    dav_resource_response(davrq, sstr(ppath), sstr(uri));
-    
     // end propfind
     davrq->persistencemgr->propfind_begin(davrq->persistencemgr, davrq);
     

mercurial