From a045dd71ae6fceca19a7647d47c8a17be8f77a63 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 22 Sep 2023 16:45:20 +0800 Subject: [PATCH] Fix Chunk v2 upload headers Signed-off-by: Claudio Cambra --- 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 4c3ce698308fe..2330c5c647d72 100644 --- a/src/libsync/propagateuploadng.cpp +++ b/src/libsync/propagateuploadng.cpp @@ -360,11 +360,11 @@ void PropagateUploadFileNG::startNextChunk() return; } - QMap headers; + auto headers = PropagateUploadFileCommon::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); + headers["Destination"] = destination.toUtf8(); _sent += _currentChunkSize; const auto url = chunkUrl(_currentChunk);