From edad44c2dbaa9f0e872ab1a1a0f654739ab73d64 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 16 Sep 2008 04:34:48 +0000 Subject: [PATCH] Allow 200 status code on DELETE in one other place --- chrome/content/zotero/xpcom/storage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 9f179dd08..6d5d5f881 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -1384,6 +1384,8 @@ Zotero.Sync.Storage = new function () { Zotero.Utilities.HTTP.WebDAV.doDelete(deleteURI, function (req) { switch (req.status) { case 204: + // IIS 5.1 and some versions of mod_dav return 200 + case 200: results.deleted.push(fileName); break; @@ -1531,7 +1533,7 @@ Zotero.Sync.Storage = new function () { switch (req.status) { case 204: - // IIS 5.1 returns 200 + // IIS 5.1 and some versions of mod_dav return 200 case 200: callback( uri,