Skip to content

Commit

Permalink
Merge pull request #6084 from nextcloud/bugfix/chunkv2-destination-he…
Browse files Browse the repository at this point in the history
…ader

Fix Chunk v2 upload headers
  • Loading branch information
claucambra authored Sep 22, 2023
2 parents 395edd9 + a045dd7 commit 2660b04
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 2660b04

Please sign in to comment.