From 51d2e41d8b7c9f03c7e81ea6abe6b6df0e1d9378 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 29 Nov 2018 23:17:34 +0100 Subject: [PATCH] Chunking Move: Fix too many starting slashes in the destination header Commit 6ca724f fixed it for the move case. But the upload MOVE did the same Issue #6904 --- src/libsync/propagateuploadng.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsync/propagateuploadng.cpp b/src/libsync/propagateuploadng.cpp index 336b02a1f..f8375a1e9 100644 --- a/src/libsync/propagateuploadng.cpp +++ b/src/libsync/propagateuploadng.cpp @@ -290,8 +290,8 @@ void PropagateUploadFileNG::startNextChunk() // Finish with a MOVE // If we changed the file name, we must store the changed filename in the remote folder, not the original one. - QString destination = QDir::cleanPath(propagator()->account()->url().path() + QLatin1Char('/') - + propagator()->account()->davPath() + propagator()->_remoteFolder + _fileToUpload._file); + QString destination = QDir::cleanPath(propagator()->account()->davUrl().path() + + propagator()->_remoteFolder + _fileToUpload._file); auto headers = PropagateUploadFileCommon::headers(); // "If-Match applies to the source, but we are interested in comparing the etag of the destination