Skip to content

Commit

Permalink
Fix Chunk v2 upload headers
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 22, 2023
1 parent 395edd9 commit a045dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsync/propagateuploadng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@ void PropagateUploadFileNG::startNextChunk()
return;
}

QMap<QByteArray, QByteArray> 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);
Expand Down

0 comments on commit a045dd7

Please sign in to comment.