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:
Dan Stillman 2011-11-08 02:45:17 -05:00
parent 7a5b1f7e32
commit 8f742bc7ab

View file

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