From 5318b9293b593354e3620cd88a689affa167dd78 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 3 Jul 2009 22:51:58 +0000 Subject: [PATCH] Fix "Unexpected status code 300 in Zotero.Sync.Storage.getStorageModificationTime()" error (likely due to mod_speling) --- chrome/content/zotero/xpcom/storage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 0a615c4ac4..4cb96e050f 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -375,7 +375,8 @@ Zotero.Sync.Storage = new function () { Zotero.Utilities.HTTP.doGet(uri, function (req) { var funcName = "Zotero.Sync.Storage.getStorageModificationTime()"; - if (req.status == 404) { + // mod_speling can return 300s for 404s with base name matches + if (req.status == 404 || req.status == 300) { callback(item, false); return; }