Skip to content

Commit

Permalink
Fixed the '404' status always in the responses of the 'PROPRFIND' met…
Browse files Browse the repository at this point in the history
…hod even when empty
  • Loading branch information
AdrienCastex committed Jun 15, 2017
1 parent cf0debb commit f1243e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server/commands/Propfind.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function parseRequestBody(arg) {
var index = prop_1.findIndex(name);
if (index === -1)
return false;
delete prop_1.elements[index];
prop_1.elements.splice(index, 1);
return true;
};
return {
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands/Propfind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function parseRequestBody(arg : MethodCallArgs) : PropertyRule
const index = prop.findIndex(name);
if(index === -1)
return false;
delete prop.elements[index];
prop.elements.splice(index, 1);
return true;
};

Expand Down

0 comments on commit f1243e7

Please sign in to comment.