From 6298c653ccec2c440fdcca85de87d36a373f6abe Mon Sep 17 00:00:00 2001 From: Adrien Castex Date: Fri, 9 Jun 2017 14:36:59 +0200 Subject: [PATCH] Removed tests for compliance in the PROPFIND method --- lib/server/commands/Propfind.js | 4 ---- src/server/commands/Propfind.ts | 6 ------ 2 files changed, 10 deletions(-) diff --git a/lib/server/commands/Propfind.js b/lib/server/commands/Propfind.js index cccfcdd7..6d51e956 100644 --- a/lib/server/commands/Propfind.js +++ b/lib/server/commands/Propfind.js @@ -102,7 +102,6 @@ function default_1(arg, callback) { } propstat.ele('D:status').add('HTTP/1.1 200 OK'); var prop = propstat.ele('D:prop'); - prop.ele('N:executable', { 'xmlns:N': 'http://apache.org/dav/props/' }).add('F'); var nb = 7; function nbOut(error) { if (nb > 0 && error) { @@ -201,9 +200,6 @@ function default_1(arg, callback) { nbOut(e); }); }); } - else { - prop.ele('D:getcontentlength').add(0); - } nbOut(); }); }); resource.lastModifiedDate(function (e, lastModifiedDate) { return process.nextTick(function () { diff --git a/src/server/commands/Propfind.ts b/src/server/commands/Propfind.ts index caf59461..69d1cc32 100644 --- a/src/server/commands/Propfind.ts +++ b/src/server/commands/Propfind.ts @@ -134,8 +134,6 @@ export default function(arg : MethodCallArgs, callback) propstat.ele('D:status').add('HTTP/1.1 200 OK') const prop = propstat.ele('D:prop') - - prop.ele('N:executable', { 'xmlns:N': 'http://apache.org/dav/props/' }).add('F'); let nb = 7; function nbOut(error?) @@ -260,10 +258,6 @@ export default function(arg : MethodCallArgs, callback) nbOut(e); })) } - else - { - prop.ele('D:getcontentlength').add(0) - } nbOut(); }))