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
This commit is contained in:
Olivier Goffart 2018-11-29 23:17:34 +01:00 committed by Kevin Ottens
parent 0e56dfe3a4
commit 51d2e41d8b
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -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