mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-08 17:02:25 +02:00
Add another error 412 handler
* Add another 412 error handler for ETag does not match current item's value
This commit is contained in:
parent
4678056792
commit
6dad811848
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue