Add another error 412 handler

* Add another 412 error handler for ETag does not match current item's value
This commit is contained in:
abraunegg 2018-07-14 07:29:32 +10:00
parent 4678056792
commit 6dad811848

View file

@ -846,7 +846,12 @@ final class SyncEngine
log.fileOnly(path, " is currently checked out or locked for editing by another user.");
return;
}
if (e.httpStatusCode == 412) {
// HTTP request returned status code 412
// ETag does not match current item's value
string nullTag = null;
response = onedrive.simpleUploadReplace(path, item.driveId, item.id, nullTag);
}
if (e.httpStatusCode == 504) {
// HTTP request returned status code 504 (Gateway Timeout)
// Try upload as a session