src/server/webdav/webdav.c

branch
webdav
changeset 236
e81d3e517b57
parent 235
4990147c58d0
child 237
ee1680ef1ef2
--- a/src/server/webdav/webdav.c	Sun Jan 19 09:01:39 2020 +0100
+++ b/src/server/webdav/webdav.c	Sun Jan 19 09:31:45 2020 +0100
@@ -258,7 +258,7 @@
     int ret = REQ_PROCEED;
     
     // create WebdavResource object for requested resource
-    if(!webdav_op_propfind_begin(op, path, NULL, statptr)) {
+    if(!webdav_op_propfind_begin(op, uri, NULL, statptr)) {
         // propfind for the requested resource was successful
         
         // usevfsdir is TRUE if
@@ -428,8 +428,6 @@
 {
     DefaultWebdavData *data = request->userdata;
     
-    // TODO: rework
-    
     // add all requested vfs properties like getcontentlength ...
     if(webdav_add_vfs_properties(
             resource,
@@ -440,13 +438,6 @@
         return 1;
     }
     
-    // all remaining properties are not available
-    WebdavPList *p = request->properties;
-    while(p) {
-        resource->addproperty(resource, p->property, 404);
-        p = p->next;
-    }
-    
     return 0;
 }
 

mercurial