From: Claudio Cambra Date: Fri, 28 Jul 2023 07:38:07 +0000 (+0800) Subject: Sent destination header per chunking v2 api X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~9^2~24^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a647ee19113962ea1b2f9063222120397fa83db2;p=nextcloud-desktop.git Sent destination header per chunking v2 api Signed-off-by: Claudio Cambra --- diff --git a/src/libsync/propagateuploadng.cpp b/src/libsync/propagateuploadng.cpp index 9757f32ae..70d9eb543 100644 --- a/src/libsync/propagateuploadng.cpp +++ b/src/libsync/propagateuploadng.cpp @@ -362,6 +362,9 @@ void PropagateUploadFileNG::startNextChunk() QMap headers; headers["OC-Chunk-Offset"] = QByteArray::number(_sent); + const auto destination = QDir::cleanPath(propagator()->account()->davUrl().path() + propagator()->fullRemotePath(_fileToUpload._file)); + headers["Destination"] = QUrl::toPercentEncoding(destination); + _sent += _currentChunkSize; const auto url = chunkUrl(_currentChunk);