From ea44d9cf6f29190b74478357c7129555c6afecf5 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 2 Nov 2011 23:50:05 -0400 Subject: [PATCH] Maybe fix some broken WebDAV servers Use "1" instead of " " for test and lastsync files --- chrome/content/zotero/xpcom/storage/webdav.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js index 834311a1ab..ff481123ed 100644 --- a/chrome/content/zotero/xpcom/storage/webdav.js +++ b/chrome/content/zotero/xpcom/storage/webdav.js @@ -783,7 +783,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.setLastSyncTime = function (callbac var self = this; - Zotero.HTTP.WebDAV.doPut(successFileURI, " ", function (req) { + Zotero.HTTP.WebDAV.doPut(successFileURI, "1", function (req) { Zotero.debug(req.responseText); Zotero.debug(req.status); @@ -918,7 +918,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.checkServer = function (callback) { // Test if Zotero directory is writable var testFileURI = uri.clone(); testFileURI.spec += "zotero-test-file"; - Zotero.HTTP.WebDAV.doPut(testFileURI, " ", function (req) { + Zotero.HTTP.WebDAV.doPut(testFileURI, "1", function (req) { Zotero.debug(req.responseText); Zotero.debug(req.status);