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

This commit is contained in:
Dan Stillman 2010-07-23 18:07:53 +00:00
parent d022b966fe
commit d8db1cd61f

View File

@ -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);