From 08728e583c922a57cccd24b2379759f151410916 Mon Sep 17 00:00:00 2001 From: Lucas Parsy <lucas.parsy@nexedi.com> Date: Fri, 13 Nov 2015 15:55:48 +0100 Subject: [PATCH] added compatibility with pyWebDAV, pyWebdav sending different error codes than Apache server Webdav. --- src/jio.storage/davstorage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jio.storage/davstorage.js b/src/jio.storage/davstorage.js index 942bbdd..325758e 100644 --- a/src/jio.storage/davstorage.js +++ b/src/jio.storage/davstorage.js @@ -209,7 +209,7 @@ }); }) .push(undefined, function (error) { - if (error.target.status === 403) { + if (error.target.status === 403 || error.target.status === 424) { throw new jIO.util.jIOError("Cannot access subdocument", 404); } throw error; -- 2.30.9