www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d8db1cd61f8106c4db6bf49b7ec32f6460247fc4
parent d022b966fe72c25928253721b837b23a45bc4ee7
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 23 Jul 2010 18:07:53 +0000

Store a space in WebDAV lastsync file to work around a server issue where timestamp of an empty file isn't updated on PUT


Diffstat:
Mchrome/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 @@ -783,7 +783,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.setLastSyncTime = function (callbac var self = this; - Zotero.Utilities.HTTP.WebDAV.doPut(successFileURI, "", function (req) { + Zotero.Utilities.HTTP.WebDAV.doPut(successFileURI, " ", 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.Utilities.HTTP.WebDAV.doPut(testFileURI, "", function (req) { + Zotero.Utilities.HTTP.WebDAV.doPut(testFileURI, " ", function (req) { Zotero.debug(req.responseText); Zotero.debug(req.status);