diff --git a/src/libsync/propagateuploadv1.cpp b/src/libsync/propagateuploadv1.cpp index a32e796a597de..7467b2ce31560 100644 --- a/src/libsync/propagateuploadv1.cpp +++ b/src/libsync/propagateuploadv1.cpp @@ -102,6 +102,10 @@ void PropagateUploadFileV1::startNextChunk() QString path = _fileToUpload._file; + if (_item->_locked == SyncFileItem::LockStatus::LockedItem) { + headers[QByteArrayLiteral("If")] = (QLatin1String("<") + propagator()->account()->davUrl().toString() + _fileToUpload._file + "> (_lockToken.toUtf8() + ">)").toUtf8(); + } + qint64 chunkStart = 0; qint64 currentChunkSize = fileSize; bool isFinalChunk = false;