diff -r 66442f81f823 -r c7f5b062e622 src/server/webdav/webdav.c --- 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);