Maybe fix some broken WebDAV servers
Use "1" instead of " " for test and lastsync files
This commit is contained in:
parent
25ba8c7006
commit
ea44d9cf6f
1 changed files with 2 additions and 2 deletions
|
@ -783,7 +783,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.setLastSyncTime = function (callbac
|
||||||
|
|
||||||
var self = this;
|
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.responseText);
|
||||||
Zotero.debug(req.status);
|
Zotero.debug(req.status);
|
||||||
|
|
||||||
|
@ -918,7 +918,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.checkServer = function (callback) {
|
||||||
// Test if Zotero directory is writable
|
// Test if Zotero directory is writable
|
||||||
var testFileURI = uri.clone();
|
var testFileURI = uri.clone();
|
||||||
testFileURI.spec += "zotero-test-file";
|
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.responseText);
|
||||||
Zotero.debug(req.status);
|
Zotero.debug(req.status);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue