Fix for WebDAV server returning 300 if lastsync but no lastsync.txt
https://forums.zotero.org/discussion/29040/
This commit is contained in:
parent
7b24dbd75c
commit
e3193526fa
1 changed files with 4 additions and 2 deletions
|
@ -995,10 +995,12 @@ Zotero.Sync.Storage.WebDAV = (function () {
|
|||
})
|
||||
.then(function () {
|
||||
return Zotero.HTTP.promise("GET", lastSyncURI,
|
||||
{ debug: true, successCodes: [200, 404] });
|
||||
{ debug: true, successCodes: [200, 300, 404] });
|
||||
})
|
||||
.then(function (req) {
|
||||
if (req.status == 404) {
|
||||
// If lastsync exists but not lastsync.txt, some servers try to
|
||||
// be helpful and return 300.
|
||||
if (req.status == 300 || req.status == 404) {
|
||||
Zotero.debug("No last WebDAV sync file");
|
||||
|
||||
// If no lastsync.txt, check previously used 'lastsync',
|
||||
|
|
Loading…
Reference in a new issue