Don't require manual sync on 40x response for invalid session errors
Server currently returns 500 but should return 403
This commit is contained in:
parent
7a5b1f7e32
commit
8f742bc7ab
1 changed files with 1 additions and 1 deletions
|
@ -1849,7 +1849,7 @@ Zotero.Sync.Server = new function () {
|
|||
|
||||
if (firstChild.localName == 'error') {
|
||||
// Don't automatically retry 400 errors
|
||||
if (xmlhttp.status >= 400 && xmlhttp.status < 500) {
|
||||
if (xmlhttp.status >= 400 && xmlhttp.status < 500 && !_invalidSession(xmlhttp)) {
|
||||
Zotero.debug("Server returned " + xmlhttp.status + " -- manual sync required", 2);
|
||||
Zotero.Sync.Server.manualSyncRequired = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue