Permalink
Browse files

Fix bug of PROPFIND, when request an empty folder with depth 0, it is…

…n't supposed to be responded with any children
  • Loading branch information...
1 parent 631c440 commit 8bf6ad32eb974dc76094e9d77d4aab2a27141a45 @johnsonlee johnsonlee committed Nov 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/DAV/handler.js
View
@@ -1721,8 +1721,6 @@ jsDAV_Handler.STATUS_MAP = {
var nodes = {};
var nodesPath = [];
- nodes[path] = parentNode;
- nodesPath.push(path);
//if (jsDAV.debugMode)
// console.log("getPropertiesForPath", depth, parentNode,parentNode.hasFeature(jsDAV_iCollection));
@@ -1738,6 +1736,8 @@ jsDAV_Handler.STATUS_MAP = {
});
}
else {
+ nodes[path] = parentNode;
+ nodesPath.push(path);
afterGetChildren(nodes, nodesPath);
}

0 comments on commit 8bf6ad3

Please sign in to comment.